HDU 今年暑假不AC
摘要:
典型的活动安排问题,先将活动按照结束时间进行排序。。。。#include<iostream>#include<cstdio>#include<cstdlib>using namespace std;int N;struct show{ int start; int end;};show shows[110];int cmp(const void* a,const void* b){ show c=*(show*)a; show d=*(show*)b; if(c.end==d.end) { return c.start-d.start; } else ret 阅读全文
posted @ 2011-07-18 16:44 lonelycatcher 阅读(181) 评论(0) 推荐(0) 编辑