QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#368161#3916. A Bishop's JourneyKLPP#WA 10ms9560kbPython389b2024-03-26 21:19:362024-03-26 21:19:36

Judging History

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

  • [2024-03-26 21:19:36]
  • 评测
  • 测评结果:WA
  • 用时:10ms
  • 内存:9560kb
  • [2024-03-26 21:19:36]
  • 提交

answer

n,m=map(int,input().split(" "))
import math

print(math.lcm(n-1,m-1)%(pow(10,18)+7))

详细

Test #1:

score: 100
Accepted
time: 4ms
memory: 9560kb

input:

15 22

output:

42

result:

ok 1 number(s): "42"

Test #2:

score: -100
Wrong Answer
time: 10ms
memory: 9440kb

input:

5 4

output:

12

result:

wrong answer 1st numbers differ - expected: '10', found: '12'