Ticket 13827
Problem 1679 -f
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 14
0 2
2 8
0 3
3 9
5 8
1 9
6 8
2 9
0 8
7 9
1 5
0 7
5 9
4 5
Expected Output
86
Generator Parameters
--m_high 15 --m_low 0 --n_high 4 --n_low 1