ACM训练2193: Robot Timmy题解

凯凯我们等你回来 算法基础篇 57 0
全网最全C++题库,助您快速提升编程技能!题库丰富多样,涵盖各个领域,让您在练习中不断成长!
Robot Timmy has packages to deliver. Help Timmy find the shortest path he can use to travel to deliver his package.Because he is a robot, Timmy the area he has to travel in as a series of numbered points , and aclculations of the distance between pairs of these points.The first line will contain a pair of integer values a & b, where a represents the number of the point Timmy will be leaving from and b represents the number of the point timmy will be travelling to.The second line will contain the number of points N (N

Robot Timmy has packages to deliver. Help Timmy find the shortest path he can use to travel to deliver his package. Because he is a robot, Timmy the area he has to travel in as a series of numbered points (maximum 150), and aclculations of the distance between pairs of these points. The inputs to the program are as follows: The first line will contain a pair of integer values a & b, where a represents the number of the point Timmy will be leaving from and b represents the number of the point timmy will be travelling to. The second line will contain the number of points N (N <= 150). Points are numbered 0 to N - 1. The third line will contain the number of connections between these points E (E <= 2500) All of the remaining E lines will contain three values, two points with indexes i&j and the distance k between them (These pairs of points can be travelled in both directions)

ACM训练2193: Robot Timmy题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
全网最全C++题库,助您挑战自我,突破极限,成为编程领域的佼佼者!

标签: ACM训练2193: Robot Timmy题解