摘要: 贪心:一直超时,查了后发现要标记. 不过sun和v不写>0会出错? http://poj.org/problem?id=3040 1 #include<iostream> 2 #include<cmath> 3 #include<cstring> 4 #include<algorithm> 5 us 阅读全文
posted @ 2019-03-29 18:41 XXrl 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1.贪心:最优队列 http://poj.org/problem?id=3253 倒推,最小的两个和在一起,加入队列(模拟倒割) #include<iostream> #include<algorithm> #include<queue> #define LL long long using nam 阅读全文
posted @ 2019-03-29 18:38 XXrl 阅读(139) 评论(0) 推荐(0) 编辑