最小公倍数会爆int
查看原帖
最小公倍数会爆int
732523
ZGC1111楼主2023/4/5 18:18

尽管用 a/gcd(a,b)∗b\color{red}{a/gcd(a,b) * b} 依然会爆int,建议直接用long long

2023/4/5 18:18
加载中...