codeLink:https://ide.codingblocks.com/s/188765 1
please correct my code and specify my errors
Minimum money needed
@Divya_321
I have corrected your code.
Do use 1e9 (10^9) in place of int_MAX because adding something to INT_MAX creates overflow.
the number of inputs were not ānā but āWā. i have corrected it.
and also have a look at the order of the loop
none of the test cases are passing 
@Divya_321 I submitted the exact same code, that i have provided in the link and all the test cases passed on https://hack.codingblocks.com/app/contests/1039/426/problem Try to submit it again, If the problem persists tell me so that i can talk to the concerned authorities about the same.