test_case = 10 arr = [] for i in range(0,test_case): coin = int(input()) dollars = int(coin/2) + int(coin/3) + int(coin/4) if(dollars<coin): dollars = coin arr.append(dollars) for i in range(0,test_case): print(arr[i])
https://www.codechef.com/problems/COINS this is my code for the Bytelandian gold coins question with reference code COINS. Would you please solve my problem that on submission of this code to the problem i'm getting Wrong answer as feedback.