
c++ 优先队列
碳酸钙的01妖精
这个作者很懒,什么都没留下…
展开
-
POJ-2833 The Average(优先队列)
POJ-2833 The Average(优先队列) In a speech contest, when a contestant finishes his speech, the judges will then grade his performance. The staff remove the highest grade and the lowest grade a...原创 2018-03-11 09:54:15 · 538 阅读 · 0 评论 -
HDU-1896 Stones(优先队列)
HDU-1896 Stones(优先队列) Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play s...原创 2018-03-11 10:03:27 · 389 阅读 · 0 评论 -
ZOJ-2212 Argus(优先队列)
ZOJ-2212 Argus(优先队列) A data stream is a real-time, continuous, ordered sequence of items. Some examples include sensor data, Internet traffic, financial tickers, on-line auctions, and tra...原创 2018-03-11 10:08:42 · 331 阅读 · 0 评论 -
优先队列用法
优先队列用法 基本用法: q.size();//返回q里元素个数 q.empty();//返回q是否为空,空则返回1,否则返回0 q.push(k);//在q的末尾插入k q.pop();//删掉q的第一个元素 q.top();//返回q的第一个元素 q.back();//返回q的末尾元素 优先级: priority_queue <int,vector<int>,gr...原创 2018-06-23 22:48:17 · 158 阅读 · 0 评论