摘要: https://atcoder.jp/contests/abc043/tasks/arc059_b ```cpp // https://atcoder.jp/contests/abc043/tasks/arc059_b // 任何unbalance子串, 必定含有 aa 或 aba 这两种之一的子串 阅读全文
posted @ 2023-06-19 13:42 O2iginal 阅读(33) 评论(0) 推荐(0)
摘要: https://atcoder.jp/contests/abc053/tasks/arc068_b ```cpp // https://atcoder.jp/contests/abc053/tasks/arc068_b // 当某个数字个数n>=3, 可直接拿出3个进行操作, 每次减少两个 ; // 阅读全文
posted @ 2023-06-19 11:16 O2iginal 阅读(32) 评论(0) 推荐(0)
摘要: https://atcoder.jp/contests/abc042/tasks/arc058_b // 分成两段, 计算组合数, 枚举分段点; 注意组合数需要使用递推, 否则超时 #include <iostream> #include <algorithm> using namespace st 阅读全文
posted @ 2023-06-19 10:50 O2iginal 阅读(34) 评论(0) 推荐(0)
摘要: https://atcoder.jp/contests/abc306/tasks/abc306_e ```cpp #include #include #include using namespace std; typedef long long LL; const int N = 5e5 + 10; 阅读全文
posted @ 2023-06-19 09:52 O2iginal 阅读(34) 评论(0) 推荐(0)