Ticket 17119
Problem 1829 -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
2
7
2 01
1 11
2 10
2 11
2 11
6 10
5 00
4
3 11
1 10
4 01
6 11
Expected Output
1
3
Generator Parameters
--mi_high 9 --mi_low 1 --n_high 9 --n_low 1 --t_high 2 --t_low 1