版本比较
尚不完善的数学 namespace
正文
增加 1 行删除 1 行
69 行未改动7071727374747576777853 行未改动69 行未改动 return s; }
ll mod_mul(ll a, ll b, ll p = P) { // Multiplication in the modular sense. return a * b % P; return a * b % p; }
ll mod_mul_protected(ll a, ll b, ll p = P) { // Overflow-protected multiplication in modular arithmetic. if(a < b) swap(a, b);53 行未改动