6 lines
142 B
Python
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) |