Getting NZEC error.. please help..

i am getting NZEC Error while running this code…

and after removing psyco module it works fime but executes in a lot time…

why is this hapenning?

code: Factorial

Problem code: FCTRL

import sys

import psyco
psyco.full()

def main():
    mul_list = [5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, 48828125, 244140625, 1220703125]
    val = 0

    num = sys.stdin.readline()
    for i in sys.stdin:
        val = 0
        for j in mul_list:
            if j <= num:
                val = val + (int(i)/j)
        print val

main()

just dont use

import psyco

psyco.full()

it doesn’t do anything

everything is fine except this…here is accepted sol.

http://www.codechef.com/viewsolution/4409667

2 Likes