摘要:
1 /* 2 * 题目要求:求一组点中距离最远的一对的距离 3 * 解法:凸包+枚举 4 */ 5 6 #include <cmath> 7 #include <cstdio> 8 #include <cstdlib> 9 #include <iostream>10 11 using namespace std;12 13 const int N = 50005;14 15 struct point {16 int x;17 int y;18 }p[N], stack[N];19 20 int dis(point A, point B) {21 阅读全文
posted @ 2012-04-27 07:26
Try86
阅读(240)
评论(0)
推荐(0)