![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
重新学编程之优先队列
ZZ --瑞 hopeACMer
WA就完事了
展开
-
E - Contest Score Gym - 101291E (优先队列)
Download #include <iostream> #include <algorithm> #include <queue> using namespace std; int a,k; int n[310]; long long int t=0,ans=0; priority_queue<int,vector<int>,great...原创 2019-07-23 14:27:42 · 279 阅读 · 0 评论 -
C - Bacteria Gym - 101911C (优先队列或者map迭代法)
Recently Monocarp has created his own mini-laboratory! The laboratory containsnnbacteria. Monocarp knows that he can merge any two bacteria havingequalsizes, and the resulting bacterium will have...原创 2019-08-01 13:21:56 · 113 阅读 · 0 评论 -
A - Coffee Break Gym - 101911A (优先队列)
Recently Monocarp got a job. His working day lasts exactlymmminutes. During work, Monocarp wants to drink coffee at certain moments: there arennminutesa1,a2,…,ana1,a2,…,an, when he is able and wi...原创 2019-08-01 15:18:12 · 143 阅读 · 0 评论