Ticket 9606
Problem 1629 -e
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
2
4
15 7 12 0 
5 13 5 2 
9 0 2 6 
5 8 1 0 
6
15 11 9 6 15 2 
5 9 14 1 7 11 
4 13 11 10 7 1 
2 1 14 9 5 0 
1 0 7 14 0 0 
1 7 14 6 2 4 
Expected Output
1
3
Generator Parameters
--n_half_high 3 --n_half_low 1 --t_high 2 --t_low 1 --val_high 9 --val_low 0