摘要: A 答案显然就是 \(\text{lcm}(a,b)\)。 void run() { int T = read(); while (T--) { int a = read(), b = read(); cout << a / __gcd(a, b) * b << '\n'; } } B 考虑贪心模拟 阅读全文
posted @ 2024-12-01 01:44 yhbqwq 阅读(200) 评论(0) 推荐(0)