QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#175346#5665. AA Country and King Dreamoonucup-team607RE 0ms0kbC++172.0kb2023-09-10 17:33:202023-09-10 17:33:21

详细

Test #1:

score: 0
Runtime Error

input:

9
5
1 2 3 2 0 2 1 5 1
5
1 2 3 0 0 2 1 5 1
5
1 2 0 0 0 2 1 5 1
5
1 2 0 0 0 0 1 5 1
5
1 0 0 0 0 0 1 5 1
5
1 0 0 0 0 0 0 5 1
5
1 0 0 0 0 0 0 0 1
5
1 0 0 0 0 0 0 0 0
5
0 0 0 0 0 0 0 0 0

output:


result: