QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#32049 | #1462. Euclid's Algorithm | Wu_Ren | WA | 21ms | 8408kb | Python3 | 117b | 2022-05-16 19:14:54 | 2022-05-16 19:14:56 |
Judging History
answer
def gcd(x,y):
c=x if y==0 else gcd(y,x%y)
return c
d,k=input().split(' ')
d=int(d)
k=int(k)
print(d*gcd(d,k))
詳細信息
Test #1:
score: 100
Accepted
time: 21ms
memory: 8408kb
input:
2 2
output:
4
result:
ok answer is '4'
Test #2:
score: -100
Wrong Answer
time: 15ms
memory: 8364kb
input:
2 4
output:
4
result:
wrong answer expected '16', found '4'