Skip to content

Instantly share code, notes, and snippets.

@k0001
Created August 21, 2008 00:18
Show Gist options
  • Save k0001/6469 to your computer and use it in GitHub Desktop.
Save k0001/6469 to your computer and use it in GitHub Desktop.
p='8471d0f1d478xmho'
h,m=map(int,raw_input().split(':'))
i=lambda k:(k*2,11+k%6*-2)[k>5]
Q=[0]*12;Q[i(h%12)]=1;Q[i(m/5)]|=2
print''.join(int(x,16)*' '+p[~y]+'\n'*(~g%2) for x,y,g in zip(p,Q,range(12)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment