警示后人 90pts
  • 板块P10514 考试
  • 楼主Alexandr
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/5/30 12:54
  • 上次更新2024/5/30 16:44:23
查看原帖
警示后人 90pts
475532
Alexandr楼主2024/5/30 12:54

如果你 RE at #9 还是用费马小定理求的C

请检查

LL C(LL x,LL y)
{
    if(y>x||x<0||y<0) return 0;
	LL res=fac[x];
	res=(res*inv(fac[y]))%mod;
	res=(res*inv(fac[x-y]))%mod;
	return res;
}
2024/5/30 12:54
加载中...