上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 52 下一页
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3790 1 #include 2 #include 3 #include 4 #define maxn 1001 5 using namespace std; 6 const int inf=1dis[x]+... 阅读全文
posted @ 2014-04-23 14:49 null1019 阅读(111) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1317 1 #include 2 #include 3 #include 4 #include 5 #define maxn 1001 6 using namespace std; 7 const int ... 阅读全文
posted @ 2014-04-23 14:48 null1019 阅读(183) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1874 1 #include 2 #include 3 #include 4 #define maxn 500 5 using namespace std; 6 const int inf=1<<28; 7 ... 阅读全文
posted @ 2014-04-22 19:05 null1019 阅读(115) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2544 1 #include 2 #include 3 #include 4 #define maxn 500 5 using namespace std; 6 const int inf=1<<28; 7 ... 阅读全文
posted @ 2014-04-21 22:11 null1019 阅读(154) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2066这道题用floyd做的时候要稍微优化,不优化就会超时。 1 #include 2 #include 3 #include 4 #include 5 #define maxn 1001 6 using ... 阅读全文
posted @ 2014-04-21 21:58 null1019 阅读(128) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1116欧拉通路和欧拉回路 1 #include 2 #include 3 #include 4 #define maxn 1000 5 using namespace std; 6 7 int f[maxn... 阅读全文
posted @ 2014-04-21 21:18 null1019 阅读(151) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/336/problem/B 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() 8 { 9 int m,r;1... 阅读全文
posted @ 2014-04-21 11:08 null1019 阅读(185) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3339这道题就是dijkstra+01背包,先求一遍最短路,再用01背包求。 1 #include 2 #include 3 #include 4 #define maxn 100000 5 using na... 阅读全文
posted @ 2014-04-20 15:57 null1019 阅读(137) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1869 1 #include 2 #include 3 #include 4 #define maxn 500 5 using namespace std; 6 const int inf=1g[i][k]+... 阅读全文
posted @ 2014-04-20 14:24 null1019 阅读(139) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/336/problem/A 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int main() 7 { 8 int x,y; 9 scanf(... 阅读全文
posted @ 2014-04-20 13:56 null1019 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 52 下一页