2025-09-02 21:51:46 +09:00

6 lines
142 B
Python

for _ in range(int(input())) :
A, B = map(int, input().split())
temp = A*B
while B != 0 :
A, B = B, A%B
print(temp//A)