随笔分类 -  高维前缀和

摘要:洛谷传送门 AtCoder 传送门 考虑若我们对于每个 ai 求出来了使得 gbiai(modP)bi(其中 gP 的原根),那么 aikaj(modP) 等价于 \(kb_i \ 阅读全文
posted @ 2024-01-13 19:15 zltzlt 阅读(28) 评论(0) 推荐(0) 编辑
摘要:LOJ 传送门 组合计数神题。下文的 m 指原题面中的 dk 指原题面中的 r。 考虑最后每个人得到的宝石数量的序列 s1,s2,,sn,考虑这种方案的出现次数。首先要在 m 次操作中分别选 si1 次给第 \ 阅读全文
posted @ 2023-12-05 08:48 zltzlt 阅读(50) 评论(0) 推荐(0) 编辑
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc215_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc215/tasks/abc215_h "AtCoder 传送门") 考虑第一问。 发现 阅读全文
posted @ 2023-06-14 13:31 zltzlt 阅读(14) 评论(0) 推荐(0) 编辑
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc132_f "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc132/tasks/arc132_f "AtCoder 传送门") 没见过这种在新运算 阅读全文
posted @ 2023-05-24 12:50 zltzlt 阅读(14) 评论(0) 推荐(0) 编辑
摘要:### 公式 普通 min-max 容斥: maxiSai=TST(1)|T|1minjTaj $$\min 阅读全文
posted @ 2022-11-16 11:31 zltzlt 阅读(267) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示