Ticket 6889
Problem 1677 -e
Submission 156558094
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 10
6 3 5 2 4 1 
3 6
1 5
1 4
3 6
3 5
1 4
4 5
1 3
5 6
5 6
Expected Output
3
2
1
3
0
1
0
0
1
1
Your Output
3
2
1
3
0
1
0
0
0
0
Difference
Generator Parameters
--n_high 6 --n_low 6 --q_high 10 --q_low 10