摘要: #includeint main() {char s[200];__int64 r,nb,ns,nc,pb,ps,pc,i,sum,tob,tos,toc;while(scanf("%s",s)!=EOF) {scanf("%I64d%I64d%I64d",&nb,&ns,&nc);scanf("%... 阅读全文
posted @ 2013-12-09 19:24 HYDhyd 阅读(119) 评论(0) 推荐(0) 编辑
摘要: #include#define N 210000struct node { int x,next; __int64 count,vec;}pre[N];int n,flag;int find(int x) { if(x==n+1) return n+1; if(pre[x].count>pre[... 阅读全文
posted @ 2013-12-09 19:18 HYDhyd 阅读(142) 评论(0) 推荐(0) 编辑