RUNTIME(NZEC) error in KINGKON

while solving KINGKON i am getting RUNTIME ERROR (NZEC) . I cant figure it out . Solutin id is 2059292. Please help .

I haven’t viewed your solution but yes there is no chances of NZEC in your code u may like this discussion http://discuss.codechef.com/questions/8467/nzec-runtym-error-on-spoj-server...Hope this will helpful…:slight_smile:

I have submitted another solution which got passed but my solution still giving me runtime error . It seems a bug is there in my code.

yeah i mean to say if ur solution is correct then it accepted. But if there is something else verdict like “Segmentation fault” or “tle” then it shows wrong verdict “NZEC” as u already included “return 0” statement in ur code then NZEC is meaningless in C,C++.

//