QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#217234#5669. Traveling in Jade Cityucup-team1721#WA 1112ms28524kbC++173.9kb2023-10-16 17:23:082023-10-16 17:23:08

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 7392kb

input:

4 3 1 9
2 3 8 4
1 1
q 3 4
x 0
q 3 4
c 3
q 3 4
c 1
q 3 4
x 0
q 3 4

output:

6
8
9
impossible
6

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 5444kb

input:

4 3 1 9
2 3 8 4
1 1
q 3 4
x 0
q 3 4
c 3
q 3 4
c 1
q 3 4
x 0
q 3 4

output:

6
8
9
impossible
6

result:

ok 5 lines

Test #3:

score: -100
Wrong Answer
time: 1112ms
memory: 28524kb

input:

1000000 999999 1000000 1000000
200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 200 2...

output:

177406400
-2039833682
-1076658475
-2034247882
-133937868
886390339
impossible
-1161658675
-204025668
-2137288282
818164939
impossible
29295000
-2081742882
-1978678679
impossible
-1266465475
-216869068
11422200
-1380463543
-137420533
-2045703682
35339400
-1825829211
-389966001
-1254518140
238243003
i...

result:

wrong answer 2nd lines differ - expected: '122264600', found: '-2039833682'