上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 52 下一页
摘要: http://codeforces.com/contest/334/problem/C 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 long long n; 8 int main() 9 {1... 阅读全文
posted @ 2014-04-20 13:17 null1019 阅读(110) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/334/problem/B 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int maxn=2e6; 7 struct node 8 { 9 ... 阅读全文
posted @ 2014-04-20 12:28 null1019 阅读(187) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/332/problem/B 1 #include 2 #include 3 #include 4 #define maxn 200010 5 using namespace std; 6 int a[maxn]; 7 long lon... 阅读全文
posted @ 2014-04-19 14:56 null1019 阅读(219) 评论(1) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1385 1 #include 2 #include 3 #include 4 #define maxn 1001 5 using namespace std; 6 const int inf=9999999;... 阅读全文
posted @ 2014-04-18 21:37 null1019 阅读(133) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/332/problem/A 1 #include 2 #include 3 #include 4 #include 5 #define maxn 3000 6 using namespace std; 7 8 char str[m... 阅读全文
posted @ 2014-04-18 20:31 null1019 阅读(117) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/330/problem/C这道题分三种情况。有一行全是E,有一列全是E,还有一种为无解的情况。 1 #include 2 #include 3 #include 4 #define maxn 200 5 using namespace... 阅读全文
posted @ 2014-04-18 19:54 null1019 阅读(94) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1224 1 #include 2 #include 3 #include 4 #include 5 #define maxn 5600 6 using namespace std; 7 con... 阅读全文
posted @ 2014-04-18 18:55 null1019 阅读(131) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/330/problem/B这道题可以围着一个可以与任何一个城市建路的城市建设。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 bool g[1001][100... 阅读全文
posted @ 2014-04-17 19:42 null1019 阅读(172) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3371这道题要注意重边。 1 #include 2 #include 3 #include 4 #define maxn 1000 5 using namespace std; 6 const int inf... 阅读全文
posted @ 2014-04-17 18:31 null1019 阅读(121) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/327/problem/B这道题素数打表就行。 1 #include 2 #include 3 #include 4 #include 5 #define maxn 2000100 6 using namespace std; 7 ... 阅读全文
posted @ 2014-04-17 16:45 null1019 阅读(133) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 52 下一页