摘要: 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 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 题意:从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 阅读(107) 评论(0) 推荐(0) 编辑