Ticket 16634
Problem 1176 -f
Submission 187197767
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
5
3
1 1
1 1
3 1
4
2 1
1 1
1 1
1 1
4
1 1
3 1
2 1
2 1
4
3 1
1 1
1 1
1 1
3
1 1
2 1
2 1
Expected Output
13
Your Output
14
Difference
Generator Parameters
--c_high 3 --c_low 1 --d_high 1 --d_low 1 --k_high 4 --k_low 1 --n_high 5 --n_low 1