摘要:
区间修改线段树: cpp include using namespace std; typedef long long ll; define lt ls, l, m define rt rs, m + 1, r define ls (o 1; st[ls] += lazy[o] (m l + 1); 阅读全文
摘要:
鉴于水平有限,可能会有问题。 cpp include using namespace std; typedef long long ll; define ls ch[id][0] define rs ch[id][1] const int INF = 1e9; const int MAXN = 10 阅读全文
摘要:
一个字符串的最小循环表示: cpp include using namespace std; typedef long long ll; int n; int a[600005]; int min_representation() { int i = 0, j = 1, k = 0; while(i 阅读全文
摘要:
```cpp include using namespace std; define ll long long int a[20]; ll dp[20][MAXS1][MAXS2]; ll dfs(int pos,int s1,int s2,bool lead,bool limit) { if(po 阅读全文