版本比较
题解:P2019 四平方和定理
正文
增加 6 行删除 6 行
70 行未改动7172737475767576777878798081826 行未改动8990919293939495969797989910010110210210310410510610770 行未改动int solve(int n) { // 让 n 不为 4 的倍数 while (n % 4 == 0) { n /= 2; } }
int ans = 1;
while (n != 1) { maxfac = 0; fac(n); int there = 1;6 行未改动 } ans *= there; ans %= MOD; }
return 8 * ans % MOD;}signed main() { int t; int t; cin >> t; while (t--) { int n; cin >> n; cout << solve(n) << endl; cout << solve(n) << endl; } return 0;}
```