Ticket 2158
Problem 1649 -a
Submission 149734511
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
12
1 0 1 1 1 1 1 1 1 0 0 1 
8
1 0 1 0 0 1 0 1 
Expected Output
11
7
Your Output
5
7
Difference
Generator Parameters
--n_cap 100 --n_high 12 --n_low 4 --t_cap 100 --t_high 2 --t_low 1