Hello guys,
I just started with codechef and submitted couple of solutions in java but I am getting NZEC error. Locally the code runs fine but it gives error when I upload it. Here are the links to my solution : CodeChef: Practical coding for everyone
And here is the corresponding questions: INTEST Problem - CodeChef. I would appreciate any help here in this case
First thing you can try is to remove try/catch blocks…
use io exception for the buffered reader and put the entire code in try catch block and in catch just write return; .
Just remove the package info, your code without the package got accepted when i tried
2 Likes
Nice catch, I’d expect compilation error for this…