摘要: http://codeforces.com/problemset/problem/86/D 莫队算法就是调整查询的顺序,然后暴力求解。 每回可以通过现有区间解ans(l,r)得到区间(l+1,r),(l-1,r),(l,r+1),(l,r-1)的区间解。 调整方式http://blog.csdn.n 阅读全文
posted @ 2017-07-31 22:04 可达龙 阅读(192) 评论(0) 推荐(0) 编辑