const int mod=1e+7; //结果或者过程中 res%=mod;
1ll*a*b;
leetcode刷题,结果需要取余,或者过程中int越界的解决方法
原文:https://www.cnblogs.com/wasi-991017/p/13621306.html