
重新学编程之优先队列
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 · 321 阅读 · 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 · 149 阅读 · 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 · 195 阅读 · 0 评论