上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 52 下一页
摘要: http://codeforces.com/contest/320/problem/B这道题看了很长时间没看懂, 就是个dfs; 1 #include 2 #include 3 #define maxn 2000 4 using namespace std; 5 6 int a[maxn],b... 阅读全文
posted @ 2014-04-16 16:30 null1019 阅读(142) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/320/problem/A 1 #include 2 #include 3 using namespace std; 4 5 char str[100]; 6 7 int main() 8 { 9 scanf("%s",st... 阅读全文
posted @ 2014-04-16 15:29 null1019 阅读(103) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/318/problem/C 1 #include 2 #include 3 #include 4 using namespace std; 5 long long j; 6 long long x,y,m; 7 int main() ... 阅读全文
posted @ 2014-04-15 21:48 null1019 阅读(118) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1879这道题可以把已修建的道路的费用置为0,然后用prim和kruskal都可以求出。 1 #include 2 #include 3 #include 4 #define maxn 20000 5 usin... 阅读全文
posted @ 2014-04-15 20:32 null1019 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1875 1 #include 2 #include 3 #include 4 #include 5 #define maxn 1001 6 using namespace std; 7 const int ... 阅读全文
posted @ 2014-04-15 19:31 null1019 阅读(158) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1863 1 #include 2 #include 3 #include 4 #include 5 #define maxn 200 6 using namespace std; 7 const int i... 阅读全文
posted @ 2014-04-14 22:13 null1019 阅读(164) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/318/problem/B 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 char str[2000000]; 8 9 int ma... 阅读全文
posted @ 2014-04-14 21:57 null1019 阅读(124) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/315/problem/B 1 #include 2 #include 3 #include 4 #include 5 #define maxn 200000 6 using namespace std; 7 8 int a[ma... 阅读全文
posted @ 2014-04-14 20:49 null1019 阅读(105) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/313/problem/C 1 #include 2 #include 3 #include 4 using namespace std; 5 long long a[3000000]; 6 7 int main() 8 { 9 ... 阅读全文
posted @ 2014-04-14 20:01 null1019 阅读(129) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1301 1 #include 2 #include 3 #include 4 #define maxn 500 5 using namespace std; 6 const int inf=1g[x][y])... 阅读全文
posted @ 2014-04-14 10:32 null1019 阅读(91) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 52 下一页