POJ 2786 Keep the Customer Satisfied 优先队列
摘要:
----------const int maxn=900000;const int maxm=10000;int n;struct Dat{ int v,lim; const bool operatorque;int main(){ while (~scanf("%d",&n)){ for (int i=0;ia[i].lim){ Dat top=que.top(); que.pop(); sum-=top.v; ans++; ... 阅读全文
posted @ 2014-01-08 23:01 电子幼体 阅读(146) 评论(0) 推荐(0) 编辑