Problem p02592 (python)

Fixed submission:
n=97
r=range
L='<'
P='+'
l=[3933,P,0,1,n,L,2,n,n,P,0,n,3,P,1,n,4]
a=lambda i,j:[P,i,j,i]
b=lambda i:[P,i,i,i+1]
def d(x,i,j):
	return sum([sum([b(j+t-1),a(j+t,n),*(b(s)for s in r(j+t,j+29)),[L,j+29,x,i+t],b(j+t-1),a(j+t,i+t)],[])for t in r(30)],[])
l+=d(3,5,36)
l+=d(4,36,67)
for t in r(59):
	l+=a(2,2)
	for s in r(t+1):
		if t-30<s<30:l+=[P,5+t-s,36+s,98];l+=[L,n,98,99];l+=a(2,99)
print(*l)

Buggy submission (verdict: Runtime Error):
r=range
def a(i,j,k,l=0):print("+<"[l],i,j,k)
p(6484)
a(0,1,3)
a(2,3,3,1)
for x in 0,1:
	a(x,3,x)
	for t in r(30):a(v:=x+4,v,v);a(v,3,6),exec('a(6,6,6);'*(29-t));a(6,x,T:=x*60+35+t,1);a(v,T,v)
for t in r(60):a(2,2,2);[(a(34+t-s,95+s,5),a(3,5,6,1),a(2,6,2))for s in r(t)]

Buggy submission (verdict: Runtime Error):
p=print
r=range
def a(i,j,k,l=0):p("+<"[l],i,j,k)
p(6484)
a(0,1,3)
a(2,3,3,1)
for x in r(2):
	a(x,3,x)
	for t in r(30):b(v:=x+4);a(v,3,6),eval('a(6,6,6),'*(29-t));a(6,x,T:=x*60+35+t,1);a(v,T,v)
for t in r(60):a(2,2,2);[(a(34+t-s,95+s,5),a(3,5,6,1),a(2,6,2))for s in r(t)]

Buggy submission (verdict: Runtime Error):
p=print
r=range
c=0
def a(i,j,k,l=0):
	global c
    p("+<"[l],i,j,k)
	c = c + 1
def b(i):a(i,i,i+1)
def d(x,i):
	a(x,3,x)
	for t in r(i,i+30):
		b(p:=t+1)
		a(q:=p+1,3,q)
		[*map(b,r(q,v:=i+31))]
		a(v,x,t,1)
		b(p)
		a(q,t,q)
p(3934)
a(0,1,3)
a(2,3,3,1)
d(0,9)
d(1,50)
for t in r(60):a(2,2,2);[t-31<s<30!=(a(8+t-s,50+s,5),a(3,5,6,1),a(2,6,2))for s in r(t)]

Buggy submission (verdict: Runtime Error):
p=print
r=range
def a(i,j,k,l=0):p("+<"[l],i,j,k)
def b(i):a(i,i,i+1)
def d(x,i):
	a(x,3,x)
	for t in r(30):b(p:=i+t+30);a(q:=p+1,n,q);[*map(b,r(q,v:=i+60))];a(v,x,i+t,1);b(p);a(q,i+t,q)
p(3934)
a(0,1,3)
a(2,3,3,1)
a(1,3,1)
d(0,9)
d(1,50)
for t in r(60):a(2,2,2);[t-31<s<30!=(a(8+t-s,50+s,5),a(3,5,6,1),a(2,6,2))for s in r(t)]

Buggy submission (verdict: Runtime Error):
p=print
r=range
def a(i,j,k,l=0):p("+<"[l],i,j,k)
def b(i):a(i,i,i+1)
def d(x,i):a(x,3,x)
	for t in r(30):b(p:=i+t+30);a(q:=p+1,n,q);[*map(b,r(q,v:=i+60))];a(v,x,i+t,1);b(p);a(q,i+t,q)
p(3934)
a(0,1,3)
a(2,3,3,1)
a(1,3,1)
d(0,9)
d(1,50)
for t in r(60):a(2,2,2);[t-31<s<30!=(a(8+t-s,50+s,5),a(3,5,6,1),a(2,6,2))for s in r(t)]

Buggy submission (verdict: Runtime Error):
p=print
r=range
def a(i,j,k,l=0):p("+<"[l],i,j,k)
def b(i,l=0):a(i,i,i+l)
def d(x,i):
	for t in r(30):b(p:=i+t+30);a(q:=p+1,n,q);[*map(b,r(q,v:=i+60))];a(v,x,i+t,1);b(p);a(q,i+t,q)
p(n:=3933)
a(0,1,n)
a(2,n,n,1)
a(0,n,0)
a(1,n,1)
d(0,9)
d(1,60)
for t in r(59):b(2,2,2);[t<s+30<60!=(a(9+t-s,60+s,5),a(n,5,6,1),a(2,6,2))for s in r(t+1)]

Buggy submission (verdict: Runtime Error):
n=97
r=range
L='<'
P='+'
a=lambda i,j:[P,i,j,i]
b=lambda i:[P,i,i,i+1]
d=lambda x,i,j:sum([sum([o:=b(j+t-1),a(j+t,n),*(b(s)for s in r(j+t,j+29)),[L,j+29,x,i+t],o,a(j+t,i+t)],[])for t in r(30)],[])
l=[3933,P,0,1,n,L,2,n,n,P,0,n,3,P,1,n,4,*d(3,5,36),*d(4,36,67)]
for t in r(59):
	l+=[*a(2,2),*sum([[P,5+t-s,36+s,98,L,n,98,99,*a(2,99)]for s in r(max(0,t-30),min(30,t+1))],[])]
print(*l)

Buggy submission (verdict: Runtime Error):
n=97
r=range
L='<'
P='+'
a=lambda i,j:[P,i,j,i]
b=lambda i:[P,i,i,i+1]
d=lambda x,i,j:sum([sum([o:=b(j+t-1),a(j+t,n),*(b(s)for s in r(j+t,j+29)),[L,j+29,x,i+t],o,a(j+t,i+t)],[])for t in r(30)],[])
l=[3933,P,0,1,n,L,2,n,n,P,0,n,3,P,1,n,4,*d(3,5,36),*d(4,36,67),]
for t in r(59):
	l+=[*a(2,2),*sum([[P,5+t-s,36+s,98,L,n,98,99,*a(2,99)]for s in r(max(0,t-30),min(30,t+1))],[])]
print(*l)