NZEC error in CHEFZOT

The program is running correctly in my pc, but it gives an NZEC error here.
Problem:CHEFZOT http://www.codechef.com/JUNE14/problems/CHEFZOT
solution: http://www.codechef.com/viewsolution/4002779

Hi! You can check the link below to see if it suffices to answer your question:

Thanks but, it didn’t help.

//