here’s my code for the alien chef practice problem… it seems to work fine on my machine but gives a runtime NZEC error on codechef compiler… please help
n=int(raw_input())
n=int(raw_input())
s=[0]
e=[0]
for i in range(1,n+1):
s=s + [int(raw_input())]
e=e + [int(raw_input())]
q=int(raw_input())
for p in range(q):
j=int(raw_input())
count=0
t=[0]
for m in range(1,j+1):
t=t+[int(raw_input())]
for i in range(1,n+1):
flag=0
for z in range(1,m+1):
if t[z]>=s[i] and t[z]<=e[i]:
flag=1
if flag==1:
count+=1
print count