Ticket 16410
Problem 1747 -d
Submission 179294357
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
5 6
9 4 4 3 3 
3 5
2 3
1 5
1 5
2 5
1 4
Expected Output
-1
-1
-1
-1
-1
-1
Your Output
-1
-1
-1
-1
2
-1
Difference
Generator Parameters
--ai_high 17 --ai_low 0 --n_high 9 --n_low 1 --q_high 9 --q_low 1