当前位置: 首页 > news >正文

有没有做美食的小视频网站快速做效果图的网站叫什么软件

有没有做美食的小视频网站,快速做效果图的网站叫什么软件,推广英文,互联网营销师报名入口1 /*2 一张有20个顶点的图上。3 依次输入每个点与哪些点直接相连。4 并且多次询问两点间#xff0c;最短需要经过几条路才能从一点到达另一点。5 6 bfs 水过7 */8 #includeiostream9 #includecstring 10 #includevector 11 #includecstdio 12… 1 /*2 一张有20个顶点的图上。3 依次输入每个点与哪些点直接相连。4 并且多次询问两点间最短需要经过几条路才能从一点到达另一点。5 6 bfs 水过7 */8 #includeiostream9 #includecstring 10 #includevector 11 #includecstdio 12 #includequeue 13 using namespace std; 14 15 struct node{ 16 int x, step; 17 node(){ 18 19 } 20 node(int x, int step){ 21 this-xx; 22 this-stepstep; 23 } 24 }; 25 26 27 vectorintv[25]; 28 queuenodeq; 29 int vis[25]; 30 31 32 int b, e; 33 34 void bfs(){ 35 while(!q.empty()) q.pop(); 36 node cur; 37 q.push(node(b, 0)); 38 while(!q.empty()){ 39 curq.front(); 40 q.pop(); 41 if(cur.xe){ 42 printf(%2d to %2d: %d\n, b, e, cur.step); 43 return; 44 } 45 int lenv[cur.x].size(); 46 for(int i0; ilen; i){ 47 if(v[cur.x][i]e){ 48 printf(%2d to %2d: %d\n, b, e, cur.step1); 49 return; 50 } 51 if(!vis[v[cur.x][i]]){ 52 vis[v[cur.x][i]]1; 53 q.push(node(v[cur.x][i], cur.step1)); 54 } 55 } 56 } 57 } 58 59 int main(){ 60 int n, u; 61 int cnt0; 62 while(scanf(%d, n)!EOF){ 63 while(n--){ 64 scanf(%d, u); 65 v[1].push_back(u); 66 v[u].push_back(1); 67 } 68 for(int i2; i19; i){ 69 scanf(%d, n); 70 while(n--){ 71 scanf(%d, u); 72 v[i].push_back(u); 73 v[u].push_back(i); 74 } 75 } 76 scanf(%d, n); 77 printf(Test Set #%d\n, cnt); 78 while(n--){ 79 scanf(%d%d, b, e) ; 80 bfs(); 81 memset(vis, 0, sizeof(vis)); 82 } 83 printf(\n); 84 for(int i1; i20; i) 85 v[i].clear(); 86 87 } 88 return 0; 89 } 1 /*2 Floyd 才是正解3 */4 #includeiostream5 #includecstring6 #includevector7 #includecstdio8 #includequeue9 #define INF 0x3f3f3f3f 10 using namespace std; 11 12 int map[25][25]; 13 14 void Folyd(){ 15 for(int k1; k20; k) 16 for(int i1; i20; i) 17 for(int j1; j20; j) 18 if(map[i][j] map[i][k] map[k][j]) 19 map[i][j] map[i][k] map[k][j]; 20 } 21 22 23 int main(){ 24 int n, u, b, e; 25 int cnt0; 26 while(scanf(%d, n)!EOF){ 27 memset(map, 0x3f, sizeof(map)); 28 while(n--){ 29 scanf(%d, u); 30 map[1][u]map[u][1]1; 31 } 32 for(int i2; i19; i){ 33 scanf(%d, n); 34 while(n--){ 35 scanf(%d, u); 36 map[u][i]map[i][u]1; 37 } 38 } 39 scanf(%d, n); 40 printf(Test Set #%d\n, cnt); 41 Folyd(); 42 while(n--){ 43 scanf(%d%d, b, e) ; 44 printf(%2d to %2d: %d\n, b, e, map[b][e]); 45 } 46 printf(\n); 47 } 48 }     转载于:https://www.cnblogs.com/hujunzheng/p/3898362.html
http://www.yutouwan.com/news/397307/

相关文章:

  • 怎么用ppt做网站企业门户网站模板
  • 3d网页游戏排行优化外包服务公司
  • 觉得自己做的网站土怎么办手机之家对比
  • 网站联系我们页面设计专业做企业网站
  • 网站设计电商运营做一个静态网站需要多少钱
  • 网站的设计与维护摘要建设银行网站点不进去了怎么办
  • 怎么做网络销售的网站logo标志设计
  • 为学校网站做网站推广策划德阳建设机械网站
  • 宜昌做网站公司有哪些网站做网站模板平台
  • 海城网站制作安卓软件开发培训
  • 沈阳想做网站自己怎么学电商运营
  • 做网站发广告洛可可设计公司待遇
  • 瓷砖 中企动力 网站建设中国外发加工网官网
  • 西宁做网站最好的公司别墅外观设计网站推荐
  • 网站建设怎么更换图片深圳企业网站建设维护
  • 广州制作网站平台wordpress大学主题修改
  • 秦皇岛城乡建设局网站logo标志
  • 学校网站设计的作用最专业的企业营销型网站建设
  • 十大ppt模板免费下载网站网站信息优化的方式
  • 公司做网站自己注册域名用wordpress建立电商网站
  • 黄冈网站推广软件费用是多少房地产集团网站建设方案
  • 网站建设客户分析推广广告投放
  • 如何看网站的建站时间专业做域名的网站吗
  • 可以找厂家的网站凡科网建立网站后怎么修改
  • 移动建站工具免费素材视频软件app
  • 旅游网站建设属于什么以及学科好玩的网站源码
  • 广东建设公司网站wordpress 文章链接失效
  • 自助网站建设公司智能建站价格
  • 做网站优化的单位网站备案
  • 可视化自助建站网页设计与网站建设作业答案