Ticket 16717
Problem 1791 -f
Submission 192156625
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
2
4 2
8 9 3 9 
2 1
1 3 4
3 5
5 3 9 
2 3
1 3 3
1 1 3
1 3 3
1 1 2
Expected Output
8
9
Your Output

          
Difference
Generator Parameters
--ai_high 9 --ai_low 1 --n_high 5 --n_low 1 --q_high 5 --q_low 1 --t_high 2 --t_low 1