Type: Default 1000ms 256MiB

1006

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

1006题面

7
3 1 4 1 5 9 2
8
5 1 3
5 4 7
1 3 3 -3
2 2 4
3 3 5
3 4 5
4 1 1
4 1 2
0
1
1
0
1
1
1