Ticket 11613
Problem 1688 -f
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
1
17 6
10 10 7 1 3 4 2 8 4 6 3 10 9 3 10 8 6 
2 3 7 7 5 5 1 10 1 2 6 4 6 3 5 10 2 
1 6
9 15
8 17
7 14
10 16
3 14
Expected Output
NO
Generator Parameters
--m_high 20 --m_low 5 --n_high 20 --n_low 2 --t_high 1 --t_low 1 --val_high 10 --val_low 1