摘要: E - Count Sequences 2 不能线性求逆元,模数不一定是素数 用C(n,m) = C(n-1,m-1)+C(n-1,m)预处理组合数 #include<bits/stdc++.h> using namespace std; #define endl '\n' #define yes 阅读全文
posted @ 2025-12-25 16:38 arin876 阅读(6) 评论(0) 推荐(0)
摘要: AT_abc417_f [ABC417F] Random Gathering 少见的独立切出f 概率期望 对于每个[L,R]区间中的每个盘子 +1/len(sum - x ) 或者 修改为 1/lens + (1-1/len)*0,发现就用区间查询区间修改就可以 #include<bits/stdc 阅读全文
posted @ 2025-12-25 16:18 arin876 阅读(4) 评论(0) 推荐(0)