随笔分类 - cf
摘要:题面 点过去看 题解 首相想当$k$固定怎么算, 很简单想出数据结构维护$nlogn$的做法, 关键当$k$ 从 \(1\) 到 \(n\),怎么办 在仔细看看$k$固定时的复杂度,应该是$ans \times logn$,其中ans为答案 那从$1$ 到 \(n\) 的 $\sum ans$最坏情
阅读全文
摘要:
阅读全文
阅读全文
摘要:Codeforces Round #731 (Div. 3) A - Shortest Path with Obstacle int main() { ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); int _; for (cin >> _; _;
阅读全文
摘要:Codeforces Round #721 (Div. 2) A - And Then There Were K 打表找规律 int main() { IOS; VI a(1); while (a.back() < 1e9) { ll cur = a.back() * 2 + 1; if (cur
阅读全文
摘要:
东京暗鸦!
阅读全文
东京暗鸦!
阅读全文
摘要:
阅读全文
阅读全文
摘要:
阅读全文
阅读全文
摘要:Codeforces Round #706 (Div. 2) A - Split it! 有点像回文 int main() { IOS; for (cin >> _; _; --_) { cin >> n >> m >> s + 1; k = 0; rep (i, 1, n >> 1) if (s[
阅读全文

以后就不用宏定义了
逆向开题大失败
浙公网安备 33010602011771号