Ticket 16612
Problem 1176 -f
Submission 187096197
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
4
3
3 1
3 1
1 1
2
2 1
3 1
3
3 2
3 2
2 2
3
1 1
2 1
1 3
Expected Output
8
Your Output
9
Difference
Generator Parameters
--c_high 3 --c_low 1 --d_high 3 --d_low 1 --k_high 3 --k_low 1 --n_high 4 --n_low 1