Ticket 712
Problem 1644 -d
Submission 148155504
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
199692 191699 54054 9
143019 78993
173006 176843
49816 112501
7393 41422
90240 172012
88109 62199
131994 153774
153154 10080
115177 129006
Expected Output
479488859
Your Output

          
Difference
Generator Parameters
--k_cap 200000 --k_high 200000 --k_low 1 --m_cap 200000 --m_high 200000 --m_low 1 --n_cap 200000 --n_high 200000 --n_low 1 --q_cap 200000 --q_high 10 --q_low 1 --t_cap 10000 --t_high 1 --t_low 1