01.in
3 10 10 20
1
3 2 1 1 1
3 2
6 3 1 2 1 2 1 2
5 1
4 2 10 7 2 5
0 1 2
3 2 1 2 3
Manual inspection of all test cases in the database.
8 2 3 3 1 1 2 3 4 5