Skip to content

Instantly share code, notes, and snippets.

@eito
Last active January 3, 2016 10:49
Show Gist options
  • Save eito/8452201 to your computer and use it in GitHub Desktop.
Save eito/8452201 to your computer and use it in GitHub Desktop.
d=''.join(map("{0:07b}".format,[126,48,109,121,51,91,95,112,127,123]))
a=raw_input()
l=" ### "
x=" "
p="#"
q=" #"
i=int
for r in range(9):
for n in a:
v=map(i,d[i(n)*7:7*i(n)+7]);t=x*5
if r==0and v[0]or r==4and v[6]or r+v[3]==9:t=l
if r%4:t=(p if(v[5]if r in[1,2,3]else v[4])else x)+x+(q if(v[1]if r in[1,2,3]else v[2])else x*3)
print x*2+t,
print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment