Ticket 16989
Problem 1847 -d
Submission 213092218
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 1 2
11
2 2
2
2
Expected Output
1
0
Your Output
2
1
Difference
Generator Parameters
--m_high 2 --m_low 1 --n_high 2 --n_low 1 --q_high 2 --q_low 1