摘要: hdu 1166 敌兵布阵最简单的单点更新,因为是第一题线段树,学习了网上的题解之后写的 1 #include 2 #include 3 using namespace std; 4 5 const int maxn = 50000; 6 7 struct segment{ 8 int... 阅读全文
posted @ 2015-08-17 20:53 PosProteus 阅读(121) 评论(0) 推荐(0) 编辑
摘要: hdu 2037 今年暑假不AC思路: 定义结构体,排序,然后贪心。(如需输出最多可看的节目是哪些,可以使用标记数组来记录)#include#include#includeusing namespace std;struct T{ int s,e;};T program[105];bool ... 阅读全文
posted @ 2015-08-08 17:56 PosProteus 阅读(160) 评论(0) 推荐(0) 编辑