摘要: 有了一张自驾旅游路线图,你会知道城市间的高速公路长度、以及该公路要收取的过路费。现在需要你写一个程序,帮助前来咨询的游客找一条出发地和目的地之间的最短路径。如果有若干条路径都是最短的,那么需要输出最便宜的一条路径。 输入格式: 输入说明:输入数据的第1行给出4个正整数N、M、S、D,其中N(2≤N≤ 阅读全文
posted @ 2019-11-05 22:14 王清河 阅读(193) 评论(0) 推荐(0) 编辑
摘要: This time let us consider the situation in the movie "Live and Let Die" in which James Bond, the world's most famous spy, was captured by a group of d 阅读全文
posted @ 2019-11-05 22:10 王清河 阅读(156) 评论(0) 推荐(0) 编辑
摘要: /* * 文件名:mypwd.c * 描述: 实现简单的pwd命令 */ #include<stdio.h> #include<stdlib.h> #include<dirent.h> #include<sys/types.h> #include<sys/stat.h> #include<strin 阅读全文
posted @ 2019-11-05 18:32 王清河 阅读(411) 评论(0) 推荐(0) 编辑