Ticket 15662
Problem 1701 -f
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 3
6 4 7 7 9 1 
Expected Output
0
0
1
0
0
0
Generator Parameters
--d_high 9 --d_low 1 --q_high 9 --q_low 1 --val_high 9 --val_low 1