Fork me on GitHub
摘要: 大白书上的例题,具体讲解见大白书,最好用用一个Log数组直接求k,这样就是纯O(1)了#include #include #include #include #include using namespace std;#define N 100003int a[N],num[N],le[N],ri[N... 阅读全文
posted @ 2014-03-04 12:36 whatbeg 阅读(260) 评论(0) 推荐(0)