HDOJ 2037 今年暑假不AC 贪心
摘要:
#include"stdio.h"
#include"stdlib.h"
typedef struct { int s; int e;
}ITEM;
int cmp(const void *a,const void *b)
{ return (*(ITEM *)a).e-(*(ITEM *)b).e;
}
ITEM a[100],t;
main()
{ int n,cnt,i,j; while(scanf("%d",&n)!=EOF&&n) { for(i=0;i<n;i++)scanf... 阅读全文
posted @ 2012-02-28 00:31 andy_ 阅读(133) 评论(0) 推荐(0)
浙公网安备 33010602011771号