QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#32049#1462. Euclid's AlgorithmWu_RenWA 21ms8408kbPython3117b2022-05-16 19:14:542022-05-16 19:14:56

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-05-16 19:14:56]
  • 评测
  • 测评结果:WA
  • 用时:21ms
  • 内存:8408kb
  • [2022-05-16 19:14:54]
  • 提交

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'