随笔分类 -  贪心

摘要:题目链接: http://codeforces.com/contest/976/problem/E 题目: Recently Max has got himself into popular CCG “BrainStone”. As “BrainStone” is a pretty intellec 阅读全文
posted @ 2018-05-02 21:01 zhang_upstar 阅读(235) 评论(0) 推荐(0)
摘要:n堆苹果,每次花费的体力是两堆苹果的总和,问花费的最少体力。优先队列,很好处理。 #include <bits/stdc++.h> using namespace std; int main() { priority_queue<int,vector<int>,greater<int> > que; 阅读全文
posted @ 2017-04-25 21:39 zhang_upstar 阅读(234) 评论(0) 推荐(0)