QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#144120#4188. Excursion to PorvooHuangHanShengWA 1ms4248kbC++231.2kb2023-08-21 15:38:112023-08-21 15:38:17

详细

Test #1:

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

input:

2 2
1 100 300
1 1 30
5
400
500
300
20
1

output:

impossible
impossible
100
1
1

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 1ms
memory: 4240kb

input:

5 7
1 200 30
2 200 31
3 200 32
4 200 33
1 5000 33
2 5000 33
3 5000 33
3
30
31
33

output:

800
5600
15200

result:

ok 3 lines

Test #3:

score: -100
Wrong Answer
time: 0ms
memory: 4208kb

input:

2 3
1 3 3
1 4 2
1 2 1
3
1
3
2

output:

2
3
2

result:

wrong answer 3rd lines differ - expected: '3', found: '2'