QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#732410#5669. Traveling in Jade CityMaMengQiWA 301ms26940kbC++204.1kb2024-11-10 14:25:372024-11-10 14:25:37

详细

Test #1:

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

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: 3784kb

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: 301ms
memory: 26940kb

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
122264600
70328400
impossible
impossible
impossible
impossible
-1161657896
-204025096
-2137288096
818165704
impossible
29295200
impossible
22163200
impossible
-1266465096
-216868496
11422200
-1380462392
62579800
impossible
35339400
-1825827088
20157200
impossible
238245712
impossible
impos...

result:

wrong answer 8th lines differ - expected: 'impossible', found: '-1161657896'