摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2433这个问题因为路径都是1,所以可以用bfs遍历可以看这几篇文章讲解:http://blog.csdn.net/panyanyany/article/details/7215069(这篇代码非常清晰,而且效率很高... 阅读全文
posted @ 2015-12-03 23:47
qlky
阅读(354)
评论(0)
推荐(0)
摘要:
这道题也是死命TLE。。http://acm.hdu.edu.cn/showproblem.php?pid=2680 1 /* 2 使用pair代替结构 3 */ 4 5 #include 6 #include 7 #include 8 #include 9 using namespace... 阅读全文
posted @ 2015-12-03 15:23
qlky
阅读(271)
评论(0)
推荐(0)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=2544 1 /* 2 使用pair代替结构 3 */ 4 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 cons... 阅读全文
posted @ 2015-12-03 12:01
qlky
阅读(197)
评论(0)
推荐(0)
摘要:
优先队列那里用greater会报错http://acm.hdu.edu.cn/showproblem.php?pid=1874 1 /* 2 使用pair代替结构 3 */ 4 5 #include 6 #include 7 #include 8 #include 9 using name... 阅读全文
posted @ 2015-12-03 11:57
qlky
阅读(219)
评论(0)
推荐(0)
摘要:
这道题怎么都是TLE,报警了,先放在这http://acm.hdu.edu.cn/showproblem.php?pid=1596 1 #include 2 #include 3 using namespace std; 4 5 #define MAXVEX 1001 6 7 double ... 阅读全文
posted @ 2015-12-03 11:44
qlky
阅读(168)
评论(0)
推荐(0)

浙公网安备 33010602011771号