QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#731389#5602. Sun and Moonjkliao#WA 14ms10708kbPython3191b2024-11-10 03:03:402024-11-10 03:03:40

Judging History

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

  • [2024-11-10 03:03:40]
  • 评测
  • 测评结果:WA
  • 用时:14ms
  • 内存:10708kb
  • [2024-11-10 03:03:40]
  • 提交

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: ''