I get a NZEC error when I run my code online. I am using python 3.6. However when I submit the code it gets accepted usually. In this problem I get NZEC even after submitting. Any solutions? I am new so I am sorry if my question is dumb.
PIPSQUIK Problem - CodeChef - Here is the problem
My code -
t_case = int(input())
for l1 in range(t_case):
num_bars,ed_height,duck,jump,l_force = map(int, input().split())
count = 0
for l2 in range(num_bars):
bar_type, bar_height = map(int, input().split())
if bar_type == 1:
if ed_height - duck <= bar_height:
count += 1
else:
l_force -= 1
if l_force == 0:
break
else:
count += 1
if bar_type == 2:
if jump >= bar_height:
count += 1
else:
l_force -= 1
if l_force == 0:
break
else:
count += 1
print(count)