会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
null1019
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
18
19
20
21
22
23
24
25
26
···
52
下一页
2014年8月22日
cf A. Jeff and Digits
摘要: http://codeforces.com/contest/352/problem/A 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int n; 7 int a[1001]; 8 int main() 9 {10 ...
阅读全文
posted @ 2014-08-22 10:12 null1019
阅读(98)
评论(0)
推荐(0)
2014年8月21日
cf C. Bombs
摘要: http://codeforces.com/contest/350/problem/C对n个点按曼哈顿距离排序。 1 #include 2 #include 3 #include 4 #define maxn 100010 5 using namespace std; 6 7 struct ...
阅读全文
posted @ 2014-08-21 21:44 null1019
阅读(151)
评论(0)
推荐(0)
cf B. Resort
摘要: http://codeforces.com/contest/350/problem/B从旅馆开始倒着找到一个点它的出度>1的位置为止,比较长度大小,找到一个长度最大的即可。 1 #include 2 #include 3 #include 4 #define maxn 100010 5 usi...
阅读全文
posted @ 2014-08-21 20:02 null1019
阅读(132)
评论(0)
推荐(0)
cf B. Color the Fence
摘要: http://codeforces.com/contest/349/problem/B贪心 1 #include 2 #include 3 #include 4 using namespace std; 5 const int inf=1=1; j--)46 {47 ...
阅读全文
posted @ 2014-08-21 09:34 null1019
阅读(128)
评论(0)
推荐(0)
cf B. Little Dima and Equation
摘要: http://codeforces.com/contest/460/problem/B 1 import java.util.*; 2 import java.math.*; 3 public class Main { 4 5 public static void main(Str...
阅读全文
posted @ 2014-08-21 08:42 null1019
阅读(139)
评论(0)
推荐(0)
2014年8月20日
cf C. Alice and Bob
摘要: http://codeforces.com/contest/347/problem/C这道题就是求出n个数的最大公约数,求出n个数的最大值,总共有max1/gcd-n个回合。然后判断如果回合数%2==0 输出Bob,否则输出Alice。 1 #include 2 #include 3 #incl...
阅读全文
posted @ 2014-08-20 21:26 null1019
阅读(225)
评论(0)
推荐(0)
cf B. Fixed Points
摘要: http://codeforces.com/contest/347/problem/B 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int n; 7 int a[100010]; 8 int id[100010]; ...
阅读全文
posted @ 2014-08-20 18:59 null1019
阅读(153)
评论(0)
推荐(0)
sgu To xor or not to xor
摘要: 题意:从n个数中,选择一些数,使得异或最大。 1 #include 2 #include 3 #include 4 #define ll __int64 5 using namespace std; 6 7 ll c[110][110]; 8 int n; 9 ll cc;10 11 voi...
阅读全文
posted @ 2014-08-20 18:39 null1019
阅读(113)
评论(0)
推荐(0)
2014年8月19日
cf D. Alternating Current
摘要: http://codeforces.com/contest/344/problem/D 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 char str[100001]; 8 int main()...
阅读全文
posted @ 2014-08-19 23:05 null1019
阅读(129)
评论(0)
推荐(0)
cf B. Simple Molecules
摘要: http://codeforces.com/contest/344/problem/B 1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int a,b,c; 8 int t1=0,t2=0,t3...
阅读全文
posted @ 2014-08-19 20:30 null1019
阅读(120)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
25
26
···
52
下一页
公告