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