This commit is contained in:
2020-09-26 13:30:10 +09:00
parent 0ab8668824
commit 4bcb1e9c23
4 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
A, B = map(int, input().split())
p = 1
for i in range(A, 1, -1):
if A % i == 0 and B % i == 0:
p = i
break
print(p)
print(A*B//p)