纠结在这句话了If it is impossible to get from some town to some other town, print "Send Kurdy" instead. Put an empty line after each test case. 题目要求是如果一旦存在一个点不能到达另一个点就输出Send Kurdy 注意处理时跳过边长超过10的再跑FLOYD.之后在所有最短路中查找最大值即可 #include <map> #include <…
题意: 有一个单行道,两个方向都有车在等待.给出每个车的方向以及到达的时间以及走完这段路所需要的时间. 为了防止车祸,同向两车通过任一点的时间间隔不得小于10s. 求最后一辆车离开时刻的最小值. 思路: 这题最坑的就是,车可以降低速度.provided it is not slowed down by other cars in front. 分析一下样例2, 4 A 0 100 B 50 100 A 100 1 A 170 100 首先B走,到达时间为150s,之后A1走,到达时间为2…
题目 Source http://acm.hdu.edu.cn/showproblem.php?pid=5838 Description Zhu found a map which is a N∗M rectangular grid.Each cell has a height and there are no two cells which have the same height. But this map is too old to get the clear information,so…