Ticket 6807
Problem 1677 -e
Submission 156351527
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
9 9
6 7 2 8 1 4 9 3 5 
4 5
6 7
2 5
2 9
2 8
4 6
7 9
6 7
5 9
Expected Output
1
0
3
19
15
3
0
0
4
Your Output
1
0
1
17
13
3
0
0
4
Difference
Generator Parameters
--n_high 9 --n_low 1 --q_high 9 --q_low 1