
ACM
文章平均质量分 79
九月恒心
这个作者很懒,什么都没留下…
展开
-
POJ_1611
http://acm.pku.edu.cn/JudgeOnline/problem?id=1611 #include "stdio.h"#include "stdlib.h"#include using namespace std;const int MAXSIZE = 30002;int parent[MAXSIZE]; //记录父节点int num[MAXSIZE];原创 2009-07-20 10:04:00 · 491 阅读 · 0 评论 -
HDU_1050 重叠数
先将数组进行排序,第一次循环,将不重叠的元素从数组中删除(这里将flag赋值为false),sum+=10继续第二次循环,以此类推,直到数组中没有元素(flag全为false)#include #include #include using namespace std; struct move{ public: int start; int end; bool flag; }; bool comp( move p, move q){ return p.s原创 2010-09-29 09:32:00 · 872 阅读 · 0 评论