摘要: https://codeforces.com/contest/2178/problem/G 好难啊。 包含一条 chord 的 chain 数量为偶数,当且仅当以它结尾的 chain 数量为偶数,或者以它为开头的 chain 数量为偶数。 以它结尾的 chain 数量是好算的,用一个 BIT 维护异 阅读全文
posted @ 2025-12-28 16:04 Egg_eating_master 阅读(14) 评论(0) 推荐(1)