Output 2015 by carl

for i in range(0,14):
 a=input();s=a*" "+(2*a)*"_"+"\n"
 for x in range(-a+1,a+1):
  j=abs(x)
  if x>0:j-=1
  t=j*" "+"\\"+(2*a-1)*"x"+"\\"+((a-j-1)*2)*" "+"/\n"
  r="_" if x==0 or x==a else " "
  s+=t.replace("x",r)
 s=s.replace("\\","x",a*2).replace("/","\\",a).replace("x","/")
 print s,

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

download

return to the top page