摘要: 计数公式总结 本文总结了几个计数公式. 乘方 fc[1]=1; for(ll x=2;x<=n;x++) fc[x]=fc[x-1]*x%mod; ifc[n]=yt::kpow(fc[n],mod-2)%mod; for(ll x=n-1;x;x--) ifc[x]=ifc[x+1]*(x+1)% 阅读全文
posted @ 2026-03-05 21:33 lil_tea 阅读(9) 评论(0) 推荐(0)