QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#368161 | #3916. A Bishop's Journey | KLPP# | WA | 10ms | 9560kb | Python3 | 89b | 2024-03-26 21:19:36 | 2024-03-26 21:19:36 |
Judging History
answer
n,m=map(int,input().split(" "))
import math
print(math.lcm(n-1,m-1)%(pow(10,18)+7))
Details
Tip: Click on the bar to expand more detailed information
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'