上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
摘要: http://codeforces.com/problemset/problem/734/F x|y + x&y = x+y。 阅读全文
posted @ 2016-11-23 22:35 zzzzzzzzhu 阅读(231) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/734/E 每次操作可以把连通的同颜色的点全部换颜色,缩点,找直径,第一遍dfs找起点,第二遍dfs求直径。 阅读全文
posted @ 2016-11-23 21:10 zzzzzzzzhu 阅读(296) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/734/D 保存最近的八个方向的点,判断即可。 阅读全文
posted @ 2016-11-23 19:24 zzzzzzzzhu 阅读(178) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/734/C 枚举第一种,二分第二种,注意不取的情况。 阅读全文
posted @ 2016-11-23 12:04 zzzzzzzzhu 阅读(197) 评论(0) 推荐(0) 编辑
摘要: http://115.28.138.223/view.page?gpid=T44 好像也没想象中的那么难,没办法,当初连个优先队列dij都不会写= = 在优先队列dij算法上加上相等的时候的处理就可以了。 阅读全文
posted @ 2016-11-12 02:16 zzzzzzzzhu 阅读(964) 评论(0) 推荐(0) 编辑
摘要: http://115.28.138.223/view.page?gpid=T45 模拟。 阅读全文
posted @ 2016-11-12 02:14 zzzzzzzzhu 阅读(580) 评论(0) 推荐(0) 编辑
摘要: http://115.28.138.223/view.page?gpid=T47 水。 阅读全文
posted @ 2016-11-12 02:13 zzzzzzzzhu 阅读(615) 评论(0) 推荐(0) 编辑
摘要: http://115.28.138.223/view.page?gpid=T46 水。 阅读全文
posted @ 2016-11-12 02:13 zzzzzzzzhu 阅读(2162) 评论(0) 推荐(0) 编辑
摘要: 输入的两个数要求为正。 #include<stdio.h> #include<string> #include<string.h> #include<iostream> #include<cmath> using namespace std; int compare(string str1,stri 阅读全文
posted @ 2016-11-01 23:28 zzzzzzzzhu 阅读(169) 评论(0) 推荐(0) 编辑
摘要: void bubble_sort(int arr[],int n)//冒泡排序接口 { for(int i = 0;i < n;i++) { int flag = 0; for(int j = 0;j < n-i-1;j++) { if(arr[j] > arr[j+1]) { swap(arr[j 阅读全文
posted @ 2016-11-01 20:38 zzzzzzzzhu 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页