QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#217216#5669. Traveling in Jade Cityucup-team1721#ML 1ms7744kbC++174.0kb2023-10-16 17:01:562023-10-16 17:01:56

详细

Test #1:

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

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

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
Memory Limit Exceeded

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
-2094967682
-1094967875
-2034247882
-133937868
886390339
impossible
-1161658675
-204025668
-2092368082
-1684904011
-684904204
29295000
-698128404
-1979872079
-979872272
-1266465475
-216869068
11422200
-1366760943
-137420533
-1324103740
35339400
-1825829211
-389966001
-1254518140
238243003
...

result: