A Japanese counting system by hallvabo

z=y,x=' *'
while 1:i=0;exec'n=%d\nwhile n>0:v=z[n>1];w=y+z[n>3]+y+v;print(x*7,y*3+v+y*3,w+z[n>2]*2+y,w+y*3,z[n>4]*7)[i],;n-=5\nprint;i+=1;'%input()*5

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page