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

factorial question

$
0
0
count=0
t=input()
def z(x):
    answer=0
    while(x>5):
        x=x/5
        answer=answer+x
    return answer
while(count<t):
    print z(input())
    count+=1
    ..........
    .........
    ........
this is my code.....it gives me the correct result on ideone.com....but codechef isn't aacepting this and says "wrong answer" although the given sample input gives the required output....please tell what to do??

Viewing all articles
Browse latest Browse all 39796

Trending Articles



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