上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 52 下一页
摘要: http://codeforces.com/contest/357/problem/C 1 #include 2 #include 3 #include 4 #define maxn 300010 5 using namespace std; 6 7 int n,m; 8 i... 阅读全文
posted @ 2014-08-25 15:15 null1019 阅读(120) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/357/problem/B 1 #include 2 #include 3 #include 4 #define maxn 100010 5 using namespace std; 6 7 int g[maxn][4]; 8 in... 阅读全文
posted @ 2014-08-25 10:21 null1019 阅读(150) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/355/problem/C枚举L和R相交的位置。 1 #include 2 #include 3 #include 4 using namespace std; 5 const __int64 inf=1e19; 6 7 int n... 阅读全文
posted @ 2014-08-24 21:29 null1019 阅读(147) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5337 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 vectorg[10... 阅读全文
posted @ 2014-08-24 18:22 null1019 阅读(193) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/355/problem/B 1 #include 2 #include 3 #include 4 using namespace std; 5 int a[1001],b[1001]; 6 int c1,c2,c3,c4; 7 int... 阅读全文
posted @ 2014-08-23 20:52 null1019 阅读(115) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/353/problem/D 1 #include 2 #include 3 #include 4 #define maxn 10000010 5 using namespace std; 6 7 char str[maxn]; 8 ... 阅读全文
posted @ 2014-08-23 19:54 null1019 阅读(85) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/353/problem/C先预处理前i个数的和,然后找到第一个出现的1,然后变成0后的和与目前的和比较,如果大就更新。 1 #include 2 #include 3 #include 4 #define maxn 100010 5 ... 阅读全文
posted @ 2014-08-23 15:42 null1019 阅读(189) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/353/problem/B题意:要把2*n个两位数分成两部分,使得第一部分上的数和第二部分上的两位数组成四位数。求怎么分能使构成的不同的四位数个数最多如果2*n个数都是不同的,怎么分都一样的组成n*n个。如果有相同的,将它们按数量排序,均分... 阅读全文
posted @ 2014-08-23 11:04 null1019 阅读(156) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/352/problem/C题意:给予N*2个数字,改变其中的N个向上进位,N个向下进位,使最后得到得数与原来数的差的绝对值最小对每一个浮点数都取其下限,得到的差值就是所有浮点数小数部分的和;然后则需要从2*n个数里面选出n个数取其上限,即下... 阅读全文
posted @ 2014-08-22 23:13 null1019 阅读(125) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/352/problem/B 1 #include 2 #include 3 #include 4 using namespace std; 5 int a[100010]; 6 int n; 7 bool vis[100010]; 8... 阅读全文
posted @ 2014-08-22 11:06 null1019 阅读(102) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 52 下一页