Ticket 17505
Problem 925 -a
Submission 318121566
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
3 7 4 1 1
3 4 5 6 
7 
2
2 2 2 1
1 1 2 2
Expected Output
1
4
Your Output
3
4
Difference
Generator Parameters
--n_or_m_high 9 --n_or_m_low 3 --q_high 9 --q_low 1