上一页 1 2 3 4 5 6 ··· 26 下一页

2012年7月23日

【解题报告】【HDOJ1392】【Graham凸包】Surround the Trees

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1392典型凸包1.当只有一个点时 输出时0.002.当只有两个点时 输出时两个点的距离3.当n>2 且共线时,输出需要*2,(这个是题目的奇怪之处,当只有2点时不用) 1 #include<stdio.h> 2 #include<string.h> 3 #include<math.h> 4 #define max(a,b) (a>b?b:a) 5 6 struct node{ 7 double x,y; 8 int i; 9 }; 10 11 stru 阅读全文

posted @ 2012-07-23 17:34 coding封神 阅读(133) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 26 下一页

导航