摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3661貌似是道很简单的贪心,结果让我搞的。。。唉,不在状态啊...#include<cstdio>#include<cstring>#include<algorithm>usingnamespacestd;intat[1005],bt[1005];intcmp(inta,intb){returna>b;}intmain(){intn,t,i;while(~scanf("%d%d",&n,&t)){intsum=0;for(i=0;i 阅读全文
posted @ 2011-11-19 19:18 追逐. 阅读(227) 评论(0) 推荐(0) 编辑