NZEC Error for AlienChefs using Python 2.7

Hi,

My code is working OK on local, but getting NZEC runtime error. Can anyone point out what I’m missing here ? Here’s the code.

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

Thanks

…you are getting NZEC because you are attempting to read input from a file. Code Chef will redirect the standard input stream to an input file and redirect the standard output stream to another file, meaning you can just use raw_input().

//