随笔分类 -  贪心

摘要:Today the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi. The machine whose 阅读全文
posted @ 2019-07-07 12:56 coolwx 阅读(190) 评论(0) 推荐(0)
摘要:巨坑无比的题目,有人连样例都过不去还真给他过了,真的坑,这题就姑且看一下,反正很奇怪的贪心,但是不能用pair,因为不能保证全部大于,巨坑 阅读全文
posted @ 2019-07-04 00:17 coolwx 阅读(124) 评论(0) 推荐(0)
摘要:The Power Cube is used as a stash of Exotic Power. There are nn cities numbered 1,2,…,n1,2,…,n where allowed to trade it. The trading price of the Pow 阅读全文
posted @ 2019-07-03 10:07 coolwx 阅读(109) 评论(0) 推荐(0)