摘要: 枚举支援的国家。。。View Code 1 /* 2 DFS 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<algorithm> 8 #include<iostream> 9 #include<queue> 10 //#include<map> 11 #include<math.h> 12 using namespace std; 13 typedef long long ll; 14 // 阅读全文
posted @ 2013-03-30 22:01 xxx0624 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 纯半平面交+判断是否存在核。。。View Code 1 /* 2 半平面交+判断是否有核 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<algorithm> 8 #include<iostream> 9 #include<queue>10 //#include<map>11 #include<math.h>12 using namespace std;13 typedef long long 阅读全文
posted @ 2013-03-30 15:33 xxx0624 阅读(220) 评论(0) 推荐(0) 编辑
摘要: View Code 1 /* 2 几何+凸包逆序输出+极角排序 3 */ 4 #include<stdio.h> 5 #include<string.h> 6 #include<stdlib.h> 7 #include<math.h> 8 #include<algorithm> 9 using namespace std;10 const int maxn = 55;11 const double eps = 1e-8;12 struct Point{13 double x,y;14 };15 Point point[ maxn ]; 阅读全文
posted @ 2013-03-30 14:08 xxx0624 阅读(253) 评论(0) 推荐(0) 编辑