How to solve SPOJ ADACOINS ?
What is the idea behind this problem?
Link to the problem
Repovive Standard Round 2 Solution Discussion (with Anirudh)