I don’t know why my code get NZEC. I tried my code in different IDE. And every time I got the exact answer that the problem wanted. But after submiting my solution for this problem i got NZEC. Can you guys find it out that why I got NZEC? Please describe the problem of my program and kindly describe how to get rid from this.
Here is the Problem link: CodeChef: Practical coding for everyone
And here is my all submissions:
CodeChef: Practical coding for everyone
CodeChef: Practical coding for everyone
CodeChef: Practical coding for everyone
T can be as high as 100000, and if T>1000, the variable T
in your code will be undefined, and so your code will throw an exception.
2 Likes
Just replace:
t = int(input())
if t>=1 and t<=1000:
T = t
with
T = int(input())
2 Likes
Thanks, I am going to check it.
1 Like
@ssjgz Yes, it worked. Now, I am feeling so much regret that why i didn’t think about it deeply and try it during the contest! Thank you anyway.
1 Like