hdu 1025
摘要:
地址:http://acm.hdu.edu.cn/showproblem.php?pid=1025题意:上面n个点,下面n个点,然后在这2n个点之间随意连线,一个点只能被连一次,问最多有多少条线不交叉。mark:把上面点排序后,那么就转换成最大升序子序列的问题了。可以看看我上一篇博客~poj 3903代码:#include <stdio.h>#include <string.h>#include <stdlib.h>typedef struct{ int s,e;}city;city c[500010];int len;int d[500010];int c 阅读全文
posted @ 2012-07-25 15:48 andre_joy 阅读(549) 评论(0) 推荐(0) 编辑