上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 52 下一页
摘要: 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 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 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 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(109) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 52 下一页