fork download
  1. n=input()
  2. l=[['']]
  3. a=0
  4. x=1
  5. b='@'
  6. while a<=n:l+=b,;l=zip(*l[::-1]);m=x%2;b='\/'[m]+x/2*'-|'[m];k=len(b);a+=k;x+=1
  7. l+=b[:n-a]+'>v'[m]+' '*(k-n+a-1),
  8. if m:l=zip(*l[::-1])
  9. for i in l:print''.join(i)
Success #stdin #stdout 0.01s 9032KB
stdin
54
stdout
/------\
|/----\|
||/--\||
|||/@|||
|||\-/||
||\---/|
v\-----/