摘要:
取分块大小 \(n^\frac{2}{3}\) 最优。 例题:数颜色 #include<bits/stdc++.h> using namespace std; using i64 = long long; const int N = 1e6 + 5; int cnt[N], a[N]; struct 阅读全文
posted @ 2024-07-17 12:37
Ke_scholar
阅读(23)
评论(1)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; using i64 = long long; const int N = 1e6 + 5; int cnt[N], a[N]; struct query { int l, r, id; }; int main( 阅读全文
posted @ 2024-07-17 10:24
Ke_scholar
阅读(30)
评论(1)
推荐(0)

浙公网安备 33010602011771号