Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Getting a wrong answer in Bytelandian gold coins problem

$
0
0

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.


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>