&&—最短路—&&
GSD_liu
求知是一个缓慢的过程,也是一个塑造自己的过程,会疼,会累,会心酸,但是脚步不会停止,因为你要变得更好。
展开
-
Dijkstra算法
在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? Input输入包括多组数据。每组数据第一行是两个整数N、M(N输入保证至少存在1条商店到赛场的路线。 Output对于每组输入,输出一行,表示工作人员从商店走到赛原创 2017-05-07 10:10:43 · 527 阅读 · 0 评论 -
水题
Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the water is dirty and full of tourists' sun原创 2017-06-06 21:24:17 · 371 阅读 · 0 评论