Ticket 16620
Problem 1176 -f
Submission 187196606
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
13
5
2 9
3 9
1 8
2 1
3 4
3
3 2
2 7
3 7
1
1 4
2
2 6
3 9
7
2 6
2 8
3 4
1 6
2 7
1 2
3 1
7
1 1
2 5
3 2
1 6
1 9
2 3
2 1
2
2 5
3 8
2
1 5
1 6
1
1 2
7
2 4
2 3
3 2
2 5
3 4
2 8
2 3
4
3 1
2 6
1 5
1 6
6
2 5
2 2
2 2
2 3
2 7
3 4
4
3 3
2 3
2 7
2 9
Expected Output
133
Your Output
140
Difference
Generator Parameters
--c_high 3 --c_low 1 --d_high 9 --d_low 1 --k_high 9 --k_low 1 --n_high 15 --n_low 1