However, for the sample input:
2
2 0 0 0 10 5 15 12 10 10 0 0 0
5 0 0 5 100 100 0 0 0
5 3
1
2 0 0 10 0 10 10 0 10
5 2
0
The second last line isn't of this format. Do I understand wrongly? If not, can anyone give the actual sample input data for this case? Thx.


