摘要: http://acm.hdu.edu.cn/viewcode.php?rid=13825114rmq预处理单调队列维护最大最少值还有一个暴力的做法#include #include #include #include #include #include #include #include #incl... 阅读全文
posted @ 2015-06-02 20:14 Lzy2015 阅读(140) 评论(0) 推荐(0)
摘要: //EK模板#include #include #include#include #define ll long longusing namespace std;#define arraysize 1005int maxData = 0x7fffffff;int capacity[arraysize... 阅读全文
posted @ 2015-05-26 11:12 Lzy2015 阅读(160) 评论(0) 推荐(0)
摘要: 换种思考角度在符合数字排列组合的情况下,观察数字是否为n的倍数。于是从小到大查找,通过bfs状态转换。循环节为n。表达困难,还请看代码#include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2015-05-16 10:54 Lzy2015 阅读(111) 评论(0) 推荐(0)