- 博客(2)
- 收藏
- 关注
原创 hdu4707Pet最短路(spfa)
这是一个非常睡得最短路,边都为1,其实用搜索也可以的,找距离大于d的点的个数#include <iostream> #include <queue> #include <string.h> using namespace std; const int maxn=100000+5; const int INF=0x3f3f3f3f; struct EdgeNode { int to;
2016-08-10 21:00:42 383
原创 hdu2544最短路(迪杰斯特拉)
这道题目就是模板题,只是想试一下这个优化过的迪杰斯特拉模板好不要用#include <iostream> #include <string.h> #include <queue> using namespace std; const int INF=0x3f3f3f3f; const int maxn=105; const int maxm=20005; struct Edge { int
2016-08-10 20:54:20 446
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人