版本比较
AT_abc243_f 题解
正文
增加 1 行删除 1 行
96 行未改动9798991001011011021031041054 行未改动96 行未改动 __int128 x = 1; for (int i = 1; i <= n; i++) { if (s >> (i - 1) & 1) x = x / __gcd<__int128>(x, a[i]) * a[i]; if (x > y) break; // 注意这句 } g[popcount(s)] += y / x; } g[popcount(s)] += y / x; } long long res = 0; for (int i = m; i <= n; i++) { if ((m - i) & 1) res -= c[i][m] * g[i];4 行未改动