Ticket 9650
Problem 1691 -c
Submission 159152269
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
8
6 2
101100
8 1
00000000
7 1
0000000
2 6
00
2 6
11
10 3
1001110100
5 4
00111
9 1
111010111
Expected Output
22
0
0
0
11
44
22
66
Your Output
22
0
0
0
11
44
21
66
66
Difference
Generator Parameters
--k_high 10 --k_low 0 --n_high 10 --n_low 2 --t_high 10 --t_low 1