Sparsh Kumar Sinha's submission of Paying optimally | CodeChef