The link to the problem is https://practice.geeksforgeeks.org/problems/coin-piles/0#.
My solution to the question goes like:
for i in range(int(input())):