摘要: 使用凸包模版即可。hdu 1392/* * hdu1392.c * * Created on: 2011-9-2 * Author: 王竹 */#include<stdio.h>#include<math.h>#include<stdlib.h>#define nmax 1001#define eps 1e-8typedef struct point { int x, y;} point;point Point[nmax];int stack[nmax];double res;int cross_product(point p1, point p2, poi 阅读全文
posted @ 2011-09-03 09:41 qingyezhu 阅读(231) 评论(0) 推荐(0)