mad_max
mad_max
全部文章
优先队列
主席树(1)
博弈论(2)
哈希(3)
广度优先搜索(2)
数论(8)
未归档(1)
树(2)
树状数组(3)
模拟(4)
深度优先搜索(6)
线段树(3)
贪心(2)
归档
标签
去牛客网
登录
/
注册
mad_max的博客
全部文章
/ 优先队列
(共3篇)
HDUOJ 1896 Stones(简单的优先队列模拟)
原题链接 solution:简单的优先队列模拟 #include <bits/stdc++.h> using namespace std; int main() { int t, n, res; cin >> t; while (t--) { cin >...
模拟
优先队列
2019-08-20
0
440
HDU OJ 1873 看病要排队(自定义比较器优先队列)
题目链接 自定义优先级队列比较器,捣鼓了半天,其他的没什么难度 #include <bits/stdc++.h> using namespace std; struct cmp{ bool operator() (pair<int, int>&a, pair&l...
2019-08-19
0
486
codeforces Buy Low Sell High(优先队列)
** D. Buy Low Sell High ** 原题链接 solution:利用优先队列的思路可以很好的求出答案,有一个坑点就是res用int会溢出,必须用long long表示 #include <bits/stdc++.h> using namespace std; ...
优先队列
2019-08-19
0
491