QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#197660#5669. Traveling in Jade Cityucup-team1588WA 2495ms144160kbC++177.0kb2023-10-02 18:07:372023-10-02 18:07:37

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3504kb

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: 1ms
memory: 3488kb

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: 2495ms
memory: 144160kb

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
88699800
44319400
2942600
impossible
impossible
impossible
121530200
38929400
77540200
69718400
20621600
29295200
163012800
22163200
109601200
20439200
49170000
11422400
93149000
40095200
199431200
11304000
impossible
20157400
125365800
195280000
155334600
impossible
46903400
40583200
1537...

result:

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