版本比较
题解:CF2223C Zhily and Signpost
正文
增加 1 行删除 1 行
20 行未改动21222324252627282932 行未改动20 行未改动const int MAXN = 5e5 + 10;const ll inf = 1 + (ll)1e18;inlinell lcm(ll x, ll y) {if (x >= inf || y >= inf) return inf;ll d = gcd(x, y); __int128 res = (__int128)x / d * y;return res >= inf ? inf : res;32 行未改动20 行未改动21222324252627282932 行未改动20 行未改动const int MAXN = 5e5 + 10;const ll inf = 1 + (ll)1e18;inlinell lcm(ll x, ll y) {if (x >= inf || y >= inf) return inf;ll d = gcd(x, y); __int128 res = (__int128)x / d * y;return res >= inf ? inf : res;32 行未改动