Runtime Error: NZEC

It was a Simple Problem but I’m getting NZEC.

The code is we have to print the inputs until we got the value 42. The time we got this number(42) we must stop taking inputs.

The Code i have written is as shown Below (Python).
while (True):
n=int(input())
if n!=42:
print(n)
else:
break
problem Link is here: https://www.codechef.com/LRNDSA01/problems/TEST

If you are getting NZEC on codechef IDE, just make sure you are giving custom input in the desired format in the IDE itself.

1 Like

can you give me Example, like how it should be?

Just copy sample test case and then mark the custom input and paste the copied case in the blank which appears when you mark the custom input in IDE.

1 Like

I had tried, and it’s working fine in Custom Run. but in actual…