NUMFACT: NZEC error python

first sub case got an ac for subsequent ones shows this error

my code : http://ideone.com/fork/3Qtz0M

anyone???

plz tell me

Read the Codechef FAQ for what could possibly have caused NZEC error.

read a lot about that but no help to me

anyone???