特判 a=b
int C(int n,int m) { int ans=ksm(p,G(n)-G(m)-G(n-m),mod); if(ans==0)return 0; // 把这一行加上 return ans*F(n)%mod*inv(F(m)*F(n-m)%mod,mod)%mod; }