Ticket 5883
Problem 1672 -h
Submission 154954228
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
6 8
110001
1 4
2 6
2 6
2 3
6 6
1 5
3 4
1 6
Expected Output
2
3
3
1
1
3
2
3
Your Output
2
3
3
1
1
2
2
2
Difference
Generator Parameters
--n_high 9 --n_low 1 --q_high 9 --q_low 1