Ticket 17120
Problem 1829 -c
Submission 1
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
5
7 01
2 01
2 01
9 10
2 10
3
8 01
7 01
6 00
Expected Output
4
-1
Your Output
6
-1
Difference
Generator Parameters
--mi_high 9 --mi_low 1 --n_high 9 --n_low 1 --t_high 2 --t_low 1