摘要:
Dijkstra算法的核心思想就是两步排序,一个是对于一个点而言,他的最小边要经过所有其他点最小边的测试才能确认,也就是说要在这其中找一个最大的边出来;第二个是对于每次循环而言的,每次的更新d数组都是为了要选出最短的距离。 对于每次出队列的点,都更新他所有的邻边 #include <iostream 阅读全文
posted @ 2015-11-24 12:49
Miller_S
阅读(2335)
评论(0)
推荐(0)
摘要:
Description Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any number o 阅读全文
posted @ 2015-11-24 10:13
Miller_S
阅读(530)
评论(0)
推荐(0)

浙公网安备 33010602011771号