区间DP Zoj 3537 Cake 区间DP 最优三角形剖分
摘要:
下面是别人的解题报告的链接,讲解很详细,要注意细节的处理。。。以及为什么可以这样做http://blog.csdn.net/woshi250hua/article/details/7824433我的代码: 1 //其中求凸包用的是Andrew扫描算法,复杂度主要为排序O(n*logn),扫描为O(n) 2 #include 3 #include 4 #define INF 100000000 5 #define min(a,b) a=3。0,1,2特判,如果有需要的话26 int andrew(point p[],int n)27 {28 sort(p,p+n);29 in... 阅读全文
posted @ 2013-08-02 21:04 allh123 阅读(206) 评论(0) 推荐(0) 编辑