随笔分类 - 贪心
摘要:题目链接: http://codeforces.com/contest/976/problem/E 题目: Recently Max has got himself into popular CCG “BrainStone”. As “BrainStone” is a pretty intellec
阅读全文
摘要:n堆苹果,每次花费的体力是两堆苹果的总和,问花费的最少体力。优先队列,很好处理。 #include <bits/stdc++.h> using namespace std; int main() { priority_queue<int,vector<int>,greater<int> > que;
阅读全文

浙公网安备 33010602011771号