用户输出
1 35
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#68844 | #106. zxh的同值猜想 | Accepted | 100 | 311 ms | 2872 K | Python 3 / 306 B | 焱 | 2022-04-16 11:08:48 |
import math
l=list(map(int,input().split()))
a=l[0]
b=l[1]
if a>b:
a=l[1]
b=l[0]
if b%a==0:
print(a,b,end='')
else:
i=int(math.sqrt(a))+2
while i>=1:
if a%i==0 and b%i==0:
print(i,a*int(b/i),end='')
break
else:
i=i-1
用户输出
7 14057750781710727
系统信息
Exited with return code 0
用户输出
2 28974979732195296
系统信息
Exited with return code 0
用户输出
3 19260972967518327
系统信息
Exited with return code 0