摘要: 题目链接我看的这里:http://www.cnblogs.com/ka200812/archive/2012/01/20/2328316.html然后整理一下当做模版。0换成eps,会wa,应该要写成精度特判把。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #define eps 1e-8 8 #define N 110 9 struct point10 {11 double x,y;12 }p[N],temp[N],pre[N];13 int n,m;14 d... 阅读全文
posted @ 2013-08-11 16:29 Naix_x 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 题目链接类似求面积并。。2Y。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #define LL __int64 8 #define maxn 40100 9 #define lson l , m, rt x) 35 end = mid - 1; 36 else 37 str = mid + 1; 38 } 39 return mid; 40 } 41 void pushup(int r... 阅读全文
posted @ 2013-08-11 11:19 Naix_x 阅读(224) 评论(0) 推荐(0) 编辑