QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#358724#7404. Back and ForthMaMengQiTL 1ms3840kbC++201.7kb2024-03-19 23:08:522024-03-19 23:08:52

详细

Test #1:

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

input:

3
4 5 1 4
1 1 1 1
1 2
2 3
3 1
4 2
3 4
4 4 1 2
1 1 1 1
1 2
2 3
3 4
4 1
4 8 1 3
1 100 1 1
1 2
2 1
2 3
3 2
1 4
4 1
3 4
4 3

output:

4
4
3

result:

ok 3 number(s): "4 4 3"

Test #2:

score: -100
Time Limit Exceeded

input:

1
2 0 1 2
1 1

output:


result: