Ticket 16574
Problem 711 -c
Submission 185750680
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 1 1
0 0 0 
702558085 
476008844 
828782571 
Expected Output
2007349500
Your Output
-1
Difference
Generator Parameters
--m_high 1 --m_low 1 --n_high 3 --n_low 3 --p_high 1000000000 --p_low 1