Ticket 16417
Problem 1747 -d
Submission 179300903
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 3
14 7 13 7 6 15 4 6 4 
2 7
3 7
1 8
Expected Output
-1
-1
-1
Your Output
2
-1
-1
Difference
Generator Parameters
--ai_high 17 --ai_low 0 --n_high 9 --n_low 1 --q_high 9 --q_low 1