版本比较
AT_abc349_f [ABC349F] Subsequence LCM
正文
增加 4 行删除 4 行
40 行未改动4142434445454647484991 行未改动14114214314414514514614714814974 行未改动22422522622722822822923023123215 行未改动24824925025125225225325425525672 行未改动40 行未改动}inline long long f(long long x){ long long res = 0; for (long long i = 1;i * i <= x;++i){ if (x % i == 0) if (x % i == 0) if (i != x / i) res = (res + ((((mobius(i) * g(x / i) + mod) % mod) + ((mobius(x / i) * g(i) + mod) % mod) + mod) % mod)) % mod; else res = (res + ((mobius(i) * g(x / i) + mod) % mod)) % mod; } return res;91 行未改动}inline long long fastpow(long long a,long long b){ long long num = 1,t = a; while (b){ if (b & 1) num = num * t % mod; if (b & 1) num = num * t % mod; t = t * t % mod,b >>= 1; } return num;}74 行未改动}inline long long fastpow(long long a,long long b){ long long num = 1,t = a; while (b){ if (b & 1) num = num * t % mod; if (b & 1) num = num * t % mod; t = t * t % mod,b >>= 1; } return num;}15 行未改动}inline __int128 fastpows(__int128 a,__int128 b,__int128 moder){ __int128 num = 1,t = a; while (b){ if (b & 1) num = num * t % moder; if (b & 1) num = num * t % moder; t = t * t % moder,b >>= 1; } return num;}72 行未改动