摘要: 堆+贪心(优先队列) 我们先按t2升序排一遍,对于每栋建筑如果可以抢修就修,如果不能就看它是否比之前最大的更优,如果更优,就替换。 #include <stdio.h> #include <algorithm> #include <cstring> #include <cmath> #include 阅读全文
posted @ 2017-10-31 09:41 新手-周 阅读(204) 评论(0) 推荐(0) 编辑