摘要: #include #include #include using namespace std;struct node{ int x; int y;};int cmp(const void *a,const void *b){ return *(int *)a-*(int *)b;}//从小到大排bool comp(int a,int b){ if(a<b) return true; return false;}//从小到大排bool cmpp(node a,node b){ if(a.x<b.x) return true; ... 阅读全文
posted @ 2013-11-02 20:11 同学少年 阅读(159) 评论(0) 推荐(0)
摘要: 最少拦截系统Time Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 75Accepted Submission(s) : 27Font:Times New Roman|Verdana|GeorgiaFont Size:←→Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由 阅读全文
posted @ 2013-11-02 19:51 同学少年 阅读(2082) 评论(0) 推荐(0)
摘要: Common SubsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18605Accepted Submission(s): 7875Problem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another. 阅读全文
posted @ 2013-11-02 19:35 同学少年 阅读(234) 评论(0) 推荐(0)