Skip to main content
added 528 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Python 2, 203 200 bytes

E=enumerate
l=input()
t=eval(`[[0]*-~len(l)]*4`)
for i in range(3600):
 for y,q in E(t):q[sum(y==((sum([~ord(w)%5*[j%3]+[3]for j,w in E(c)],[])+[3]*6)*450)[i]for c in l)^0-y/3]+=y*y|5>t[2][-1]
print t

Try it online!

Building the pattern with strings instead of lists of digits comes out at the same length and is a bit faster: Try it online!

Python 2, 203 200 bytes

E=enumerate
l=input()
t=eval(`[[0]*-~len(l)]*4`)
for i in range(3600):
 for y,q in E(t):q[sum(y==((sum([~ord(w)%5*[j%3]+[3]for j,w in E(c)],[])+[3]*6)*450)[i]for c in l)^0-y/3]+=y*y|5>t[2][-1]
print t

Try it online!

Python 2, 203 200 bytes

E=enumerate
l=input()
t=eval(`[[0]*-~len(l)]*4`)
for i in range(3600):
 for y,q in E(t):q[sum(y==((sum([~ord(w)%5*[j%3]+[3]for j,w in E(c)],[])+[3]*6)*450)[i]for c in l)^0-y/3]+=y*y|5>t[2][-1]
print t

Try it online!

Building the pattern with strings instead of lists of digits comes out at the same length and is a bit faster: Try it online!

added 10 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Python 2, 203203 200 bytes

R=rangeE=enumerate
l=input()
t=eval(`[[0]*-~len(l)]*4`)
for i in Rrange(3600):
 for y,q in RE(4-t[2][-1]/5*3t):t[y-1][sumq[sum(y==((sum([~ord(c[j]w)%5*[j%3+1]+[0]for%5*[j%3]+[3]for j,w in R(lenE(c))],[])+[0]*6+[3]*6)*450)[i]for c in l)^^0-0**y]+=1y/3]+=y*y|5>t[2][-1]
print t

Try it online!Try it online!

Python 2, 203 bytes

R=range
l=input()
t=eval(`[[0]*-~len(l)]*4`)
for i in R(3600):
 for y in R(4-t[2][-1]/5*3):t[y-1][sum(y==((sum([~ord(c[j])%5*[j%3+1]+[0]for j in R(len(c))],[])+[0]*6)*450)[i]for c in l)^-0**y]+=1
print t

Try it online!

Python 2, 203 200 bytes

E=enumerate
l=input()
t=eval(`[[0]*-~len(l)]*4`)
for i in range(3600):
 for y,q in E(t):q[sum(y==((sum([~ord(w)%5*[j%3]+[3]for j,w in E(c)],[])+[3]*6)*450)[i]for c in l)^0-y/3]+=y*y|5>t[2][-1]
print t

Try it online!

added 3 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Python 2, 205203 bytes

R=range
l=input()
t=eval(`[[0]*-~len(l)]*4`)
for i in rangeR(3600):
 for y in rangeR(4-t[2][-1]/5*3):t[y-1][sum(y==((sum([~ord(wc[j])%5*[j%3+1]+[0]for j,w in enumerateR(len(c))],[])+[0]*6)*450)[i]for c in l)^-0**y]+=1
print t

Try it online!Try it online!

Python 2, 205 bytes

l=input()
t=eval(`[[0]*-~len(l)]*4`)
for i in range(3600):
 for y in range(4-t[2][-1]/5*3):t[y-1][sum(y==((sum([~ord(w)%5*[j%3+1]+[0]for j,w in enumerate(c)],[])+[0]*6)*450)[i]for c in l)^-0**y]+=1
print t

Try it online!

Python 2, 203 bytes

R=range
l=input()
t=eval(`[[0]*-~len(l)]*4`)
for i in R(3600):
 for y in R(4-t[2][-1]/5*3):t[y-1][sum(y==((sum([~ord(c[j])%5*[j%3+1]+[0]for j in R(len(c))],[])+[0]*6)*450)[i]for c in l)^-0**y]+=1
print t

Try it online!

deleted 3 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161
Loading
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161
Loading