摘要: 1 // 洛谷1801 2 // 一个升序堆,一个降序堆 3 // 降序堆维护序列的前i个最小值 4 // 插如元素的时候,如果x小于降序堆最大值,则替换,并将最大值插入升序堆;否则,直接插入升序堆 5 // 每次输出升序堆的最小值即可 6 7 8 #include 9 using namespace std; 10 #define LL long long 11 ty... 阅读全文
posted @ 2016-10-03 22:55 yyblues 阅读(1960) 评论(0) 推荐(0) 编辑
摘要: 1 //fwt优化+树形DP HDU 5909 2 //见官方题解 3 // BestCoder Round #88 http://bestcoder.hdu.edu.cn/ 4 5 #include 6 // #include 7 // #include 8 // #include 9 // #include 10 // #include 11 // #incl... 阅读全文
posted @ 2016-10-03 16:43 yyblues 阅读(278) 评论(0) 推荐(0) 编辑