版本比较
__ikun__horro__
签名
增加 1 行删除 1 行
111nyag个人介绍
增加 0 行删除 48 行
7 行未改动8910111213141213141522 行未改动38394041454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889424344456 行未改动7 行未改动[](https://atcoder.jp/users/ikunhorro)

$$\rule{}{1cm}$$
$$\rule{}{1cm}$$
```sh22 行未改动| $\max\{\omega(n)\}$ | $\sf 12$ | $\sf 12$ | $\sf 13$ | $\sf 13$ | $\sf 14$ | $\sf 15$ || $\max\{d(n)\}$ | $\sf 10752$ | $\sf 17280$ | $\sf 26880$ | $\sf 41472$ | $\sf 64512$ | $\sf 103680$ |$$\rule{}{1cm}$$
```cpp line-numbersint p[N], mn[N], cnt[N], d[N], phi[N], sig[N];
int power(int a, int b) { int res = 1; while (b) { if (b & 1) { res = res * a; } a = a * a; b >>= 1; } return res;}
void init() { mn[1] = d[1] = phi[1] = sig[1] = 1; for (int i = 2; i <= N - 5; i++) { if (!phi[i]) { p[++p[0]] = i; mn[i] = i; cnt[i] = 1; d[i] = 2; phi[i] = i - 1; sig[i] = i + 1; } for (int j = 1; j <= p[0] && i * p[j] <= N - 5; j++) { mn[i * p[j]] = p[j]; if (i % p[j] == 0) { cnt[i * p[j]] = cnt[i] + 1; d[i * p[j]] = d[i] / (cnt[i] + 1) * (cnt[i] + 2); phi[i * p[j]] = phi[i] * p[j]; sig[i * p[j]] = sig[i] / (expow(p[j], cnt[i] + 1) - 1) * (expow(p[j], cnt[i] + 2) - 1); break; } cnt[i * p[j]] = 1; d[i * p[j]] = d[i] * d[p[j]]; phi[i * p[j]] = phi[i] * phi[p[j]]; sig[i * p[j]] = sig[i] * sig[p[j]]; } }}```$$\rule{}{1cm}$$
https://www.saobby.com/create_vote/
https://web.fly63.com/tool/taag/
6 行未改动