fork(5) download
  1. a=map(int,raw_input().split())
  2. l=max(a)+1|1
  3. while~l:print''.join((x%2*'/ _\\ '[x<l::2]*(x<=l<x+4)or'_ '[x|1!=l>1]*3)[x<1:x+2]+'| '[x<=l>=y]*(x+y>0)for x,y in zip([0]+a,a+[0]))[1:];l-=2
Success #stdin #stdout 0.02s 9024KB
stdin
0 4 2 7 0 8 4 8 4 8 12 2 12 0 10 2
stdout
                                    ___     ___           
                                   |   |   |   |  ___     
           _    ___     ___     ___|   |   |   | |   |    
          / \  |   |   |   |   |   |   |   |   | |   |    
  ___    |   | |   |___|   |___|   |   |   |   | |   |    
 |   |___|   | |   |   |   |   |   |   |___|   | |   |___ 
_|___|___|___|_|___|___|___|___|___|___|___|___|_|___|___|