摘要:
f[x][0/1]为最大值为x的合法序列个数, f[x][0]:包含0~x, f[x][1]:包含0~x-2和x #include<bits/stdc++.h> using namespace std; #define fr first #define se second #define et0 e 阅读全文
摘要:
O(M*sqrt(M))的做法超时 考虑直接暴力,用bitset实现小常数,时间复杂度O(N^3 / 64) #include<bits/stdc++.h> using namespace std; #define fr first #define se second #define et0 exi 阅读全文