Ticket 16995
Problem 1847 -d
Submission 1
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 2 4
100
3 3
1 2
2
1
3
1
Expected Output
1
1
1
0
Your Output
1
0
0
-1
Difference
Generator Parameters
--m_high 5 --m_low 1 --n_high 5 --n_low 1 --q_high 5 --q_low 1