NZEC RuntimeError - Python

In which cases do I get Runtime Error (NZEC) in CodeChef?
My code works fine in IDLE.

you have to provide custom input, when you are trying to run your program on codechef. (do not confuse it with submitting)

If it doesn’t work for you, visit - ( NZEC error in Python ) for a better explanation of the problem.

Try this :

    #your code