Ticket 12024
Problem 1629 -c
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
15
5
2 0 4 0 3 
3
2 0 1 
3
3 2 3 
3
3 0 3 
3
0 2 2 
3
1 1 2 
5
1 3 5 2 0 
3
0 2 1 
4
3 0 3 3 
3
2 2 2 
3
1 0 2 
5
5 2 5 2 4 
3
1 0 1 
3
2 2 1 
4
4 3 1 1 
Expected Output
3
1 1 0
1
3
3
0 0 0
2
1 0
3
1 0 0
3
0 0 0
1
4
1
3
3
1 0 0
3
0 0 0
1
3
5
0 0 0 0 0
2
2 0
3
0 0 0
4
0 0 0 0
Generator Parameters
--n_high 5 --n_low 3 --t_high 20 --t_low 8