Ticket 14678
Problem 1660 -e
Submission 161991835
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
0001
0010
0000
1101

4
1101
0111
1010
1010
Expected Output
5
8
Your Output
7
8
Difference
Generator Parameters
--n_high 4 --n_low 1 --t_high 5 --t_low 1