09 2022 档案

摘要:有理数取质数余 求 abmodp 其中 p 为质数。 费马小定理 费马小定理 : ap11 (modp) 其中 p 为质数。 abmodp $=\frac{a}{b}\cdot b^{p-1}\bmod 阅读全文
posted @ 2022-09-30 21:20 KevinLikesCoding 阅读(85) 评论(0) 推荐(0) 编辑
摘要:https://atcoder.jp/contests/abc267 C - Index × A(Continuous ver.) 不难想到前缀和,处理两个前缀和: S1i=j=inaj S2i=j=inS1j 那么题目中的式子就能转化为: $ 阅读全文
posted @ 2022-09-10 19:49 KevinLikesCoding 阅读(25) 评论(0) 推荐(0) 编辑
摘要:题目 假设有10种物品,问平均需要抽多少次,才能把所有物品都抽到一遍? 分析 首先要知道 MinMax 容斥: min(S)=TS(1)|T|+1max(T) $max(S) = \sum_{\varnothi 阅读全文
posted @ 2022-09-03 10:22 KevinLikesCoding 阅读(37) 评论(0) 推荐(0) 编辑

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