摘要: 一些前置内容 Min-Max 容斥 \[\max_{x \in S}x = \sum_{T \subseteq S}(-1)^{T - 1}\min_{x \in T}x \]\[\min_{x \in S}x = \sum_{T \subseteq S}(-1)^{T - 1}\max_{x \i 阅读全文
posted @ 2024-02-18 19:36 CountingGroup 阅读(20) 评论(1) 推荐(0) 编辑
摘要: 1. 源码 typedef long long i64; typedef unsigned long long u64; typedef __int128 i128; const i128 o = 1; template < i64 mod, i64 invpow = mod - 2 > struc 阅读全文
posted @ 2024-02-18 15:08 CountingGroup 阅读(111) 评论(0) 推荐(0) 编辑