Sarthak jain's submission of D - Minimum Cost | CodeChef