조합
This commit is contained in:
8
zeta_python/completed/2609.py
Normal file
8
zeta_python/completed/2609.py
Normal 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)
|
||||
Reference in New Issue
Block a user