I’ve tried multiple problems they always result in NZEC
I’m using a template that is accepted by atcoder, codeforces and all, I’ve even simplified it as much as I could: as soon as I call input() I got a problem
There is somehow a problem with the python3 code runner: I’ve searched for some accepted python3 solution and submitted them, I’m again getting a NZEC
The only way for me to not get a non-zero return code is to not call input() which makes it very hard to solve a problem
I managed to run the code with custom input (seems like a common mistake), but without touching the code, I just click on submit with the same code and get the NZEC
T=int(input())
1<= T and T <=1000
for S in range(T):
A=int(input())
B=int(input())
C=int(input())
S =(A+B+C)
if S==180:
print(“Yes”)
else :
print(“No”)
Plz any body help me on this it show runtime error in codechef refer to question link given below
#try this
try:
# code that you want to execute example
T=int(input())
1<= T and T <=1000
for S in range(T):
A=int(input())
B=int(input())
C=int(input())
S =(A+B+C)
if S==180:
print(“Yes”)
else :
print(“No”)
except:
pass #note:use try: ,except:,pass in your code as mentioned above