引自2009国家集训队论文: 骆可强:《论程序底层优化的一些方法与技巧》 代码: ll fm(ll a,ll b) { return (a*b - (ll)((long double)a/mod*b)*mod+mod)%mod; }