

answer will be 65 for the 2nd test case?
input 3.
1 , 2 , 4 , 8. and b = 3
fill 1 litre on day 1 and 3 on day 2 , total cost = 7.
How to solve this problem?


answer will be 65 for the 2nd test case?
input 3.
1 , 2 , 4 , 8. and b = 3
fill 1 litre on day 1 and 3 on day 2 , total cost = 7.