QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#731389 | #5602. Sun and Moon | jkliao# | WA | 14ms | 10708kb | Python3 | 191b | 2024-11-10 03:03:40 | 2024-11-10 03:03:40 |
Judging History
answer
a, b = [int(x) for x in input().split()]
c, d = [int(x) for x in input().split()]
a = b -a
c = d-c
for i in range(1, 5001):
if i % b == a and i % d == c:
print(i)
exit()
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 14ms
memory: 10572kb
input:
3 10 1 2
output:
7
result:
ok single line: '7'
Test #2:
score: 0
Accepted
time: 10ms
memory: 10632kb
input:
27 32 39 41
output:
453
result:
ok single line: '453'
Test #3:
score: 0
Accepted
time: 14ms
memory: 10648kb
input:
43 48 39 50
output:
1061
result:
ok single line: '1061'
Test #4:
score: 0
Accepted
time: 3ms
memory: 10608kb
input:
44 45 11 22
output:
451
result:
ok single line: '451'
Test #5:
score: 0
Accepted
time: 8ms
memory: 10524kb
input:
36 45 14 41
output:
1134
result:
ok single line: '1134'
Test #6:
score: 0
Accepted
time: 14ms
memory: 10584kb
input:
1 22 30 39
output:
87
result:
ok single line: '87'
Test #7:
score: 0
Accepted
time: 14ms
memory: 10620kb
input:
18 40 4 6
output:
62
result:
ok single line: '62'
Test #8:
score: 0
Accepted
time: 14ms
memory: 10600kb
input:
34 39 1 7
output:
83
result:
ok single line: '83'
Test #9:
score: 0
Accepted
time: 11ms
memory: 10608kb
input:
27 49 12 30
output:
708
result:
ok single line: '708'
Test #10:
score: 0
Accepted
time: 7ms
memory: 10576kb
input:
49 50 33 36
output:
651
result:
ok single line: '651'
Test #11:
score: 0
Accepted
time: 12ms
memory: 10700kb
input:
22 26 39 45
output:
186
result:
ok single line: '186'
Test #12:
score: 0
Accepted
time: 14ms
memory: 10708kb
input:
11 13 21 28
output:
119
result:
ok single line: '119'
Test #13:
score: 0
Accepted
time: 14ms
memory: 10576kb
input:
16 36 10 23
output:
128
result:
ok single line: '128'
Test #14:
score: 0
Accepted
time: 8ms
memory: 10576kb
input:
11 23 42 49
output:
840
result:
ok single line: '840'
Test #15:
score: -100
Wrong Answer
time: 7ms
memory: 10700kb
input:
31 39 0 31
output:
result:
wrong answer 1st lines differ - expected: '1178', found: ''