[ create a new paste ] login | about

Link: http://codepad.org/ZGc648Xi    [ raw code | output | fork ]

C, pasted on May 24:
1
2
3
4
5
6
7
#define C char
C *q="053400121154012150223433102343124450553245";X,Y,K,L,M,N,i,c,x,y,o;F(C*p,
int l,C d){if(d){l*=7;C s[l];for(i=0;i<l;i++)s[i]=q[(p[i/7]%8)*7+i%7];return F
(s,l,d-1);}x=0;y=0;o=32;while(l--){c=*p++%8;for(i=!(c%3)+1;i--;) {K=x<K?x:K;L=
y<L?y:L;M=x>M?x:M;N=y>N?y:N;y+=c&&c<3;x-=c%5>1;if(x==X&y==Y)o="_\\/"[c%3];y-=c
>3;x+=c%5<2;}}return X<M?o:10;}main(l){F(q,7,3);for(Y=L;Y<N;Y++)for(X=K;X<=M;X
++)putchar(F(q,7,3));}


Output:
                                     ____                                                                         
                                ____ \__ \                                ____                                    
                                \__ \__/ / __                        ____ \__ \                                   
                                __/ ____ \ \ \    ____               \__ \__/ / __                                
                               / __ \__ \ \/ / __ \__ \              __/ ____ \ \ \    ____                       
                          ____ \ \ \__/ / __ \/ / __/ / __          / __ \__ \ \/ / __ \__ \                      
                     ____ \__ \ \/ ____ \/ / __/ / __ \ \ \    ____ \ \ \__/ / __ \/ / __/ / __                   
                     \__ \__/ / __ \__ \__/ / __ \ \ \ \/ / __ \__ \ \/ ____ \/ / __/ / __ \ \ \                  
                     __/ ____ \ \ \__/ ____ \ \ \ \/ / __ \/ / __/ / __ \__ \__/ / __ \ \ \ \/                    
                    / __ \__ \ \/ ____ \__ \ \/ / __ \/ / __/ / __ \/ / __/ ____ \ \ \ \/ / __                    
                    \ \ \__/ / __ \__ \__/ / __ \ \ \__/ / __ \/ / __/ / __ \__ \ \/ / __ \/ /                    
                     \/ ____ \/ / __/ ____ \ \ \ \/ ____ \ \ \__/ / __ \/ / __/ / __ \ \ \__/                     
                        \__ \__/ / __ \__ \ \/ / __ \__ \ \/ ____ \/ / __/ / __ \ \ \ \/ ____                     
                        __/ ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/ / __ \ \ \ \/ / __ \__ \                    
                       / __ \__ \ \/ ____ \/ / __/ / __ \/ / __/ ____ \ \ \ \/ / __ \/ / __/ / __                 
                       \/ / __/ / __ \__ \__/ / __ \/ / __/ / __ \__ \ \/ / __ \/ / __/ / __ \/ /                 
                       __/ / __ \ \ \__/ ____ \ \ \__/ / __ \/ / __/ / __ \ \ \__/ / __ \/ / __/                  
                      / __ \ \ \ \/ ____ \__ \ \/ ____ \/ / __/ / __ \ \ \ \/ ____ \ \ \__/ / __                  
                 ____ \ \ \ \/ / __ \__ \__/ / __ \__ \__/ / __ \ \ \ \/ / __ \__ \ \/ ____ \/ /                  
            ____ \__ \ \/ / __ \/ / __/ ____ \ \ \__/ ____ \ \ \ \/ / __ \/ / __/ / __ \__ \__/                   
            \__ \__/ / __ \ \ \__/ / __ \__ \ \/ ____ \__ \ \/ / __ \/ / __/ / __ \ \ \__/ ____                   
            __/ ____ \ \ \ \/ ____ \ \ \__/ / __ \__ \__/ / __ \ \ \__/ / __ \ \ \ \/ ____ \__ \                  
           / __ \__ \ \/ / __ \__ \ \/ ____ \/ / __/ ____ \ \ \ \/ ____ \ \ \ \/ / __ \__ \__/ / __               
      ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/ / __ \__ \ \/ / __ \__ \ \/ / __ \/ / __/ ____ \ \ \    ____      
 ____ \__ \ \/ ____ \/ / __/ / __ \ \ \__/ ____ \ \ \__/ / __ \/ / __/ / __ \ \ \__/ / __ \__ \ \/ / __ \__ \     
 \__ \__/ / __ \__ \__/ / __ \ \ \ \/ ____ \__ \ \/ ____ \/ / __/ / __ \ \ \ \/ ____ \ \ \__/ / __ \/ / __/ / __  
 __/ ____ \ \ \__/ ____ \ \ \ \/ / __ \__ \__/ / __ \__ \__/ / __ \ \ \ \/ / __ \__ \ \/ ____ \/ / __/ / __ \/ /  
/ __ \__ \ \/ ____ \__ \ \/ / __ \/ / __/ ____ \ \ \__/ ____ \ \ \ \/ / __ \/ / __/ / __ \__ \__/ / __ \/ / __/   
\ \ \__/ / __ \__ \__/ / __ \ \ \__/ / __ \__ \ \/ ____ \__ \ \/ / __ \/ / __/ / __ \/ / __/ ____ \ \ \__/ / __   
 \/ ____ \/ / __/ ____ \ \ \ \/ ____ \ \ \__/ / __ \__ \__/ / __ \ \ \__/ / __ \/ / __/ / __ \__ \ \/ ____ \/ /   
    \__ \__/ / __ \__ \ \/ / __ \__ \ \/ ____ \/ / __/ ____ \ \ \ \/ ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/    
    __/ ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/ / __ \__ \ \/ / __ \__ \ \/ ____ \/ / __/ / __ \/ / __/ ____    
   / __ \__ \ \/ ____ \/ / __/ / __ \/ / __/ ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/ / __ \/ / __/ / __ \__ \   
   \/ / __/ / __ \__ \__/ / __ \/ / __/ / __ \__ \ \/ ____ \/ / __/ / __ \/ / __/ ____ \ \ \__/ / __ \/ / __/ / __
   __/ / __ \ \ \__/ ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/ / __ \/ / __/ / __ \__ \ \/ ____ \/ / __/ / __ \/ /
  / __ \ \ \ \/ ____ \__ \ \/ ____ \/ / __/ / __ \ \ \__/ ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/ / __ \/ / __/ 
  \ \ \ \/ / __ \__ \__/ / __ \__ \__/ / __ \ \ \ \/ ____ \__ \ \/ ____ \/ / __/ / __ \ \ \__/ ____ \ \ \__/ / __ 
   \/ / __ \/ / __/ ____ \ \ \__/ ____ \ \ \ \/ / __ \__ \__/ / __ \__ \__/ / __ \ \ \ \/ ____ \__ \ \/ ____ \/ / 
      \ \ \__/ / __ \__ \ \/ ____ \__ \ \/ / __ \/ / __/ ____ \ \ \__/ ____ \ \ \ \/ / __ \__ \__/ / __ \__ \__/  
       \/      \ \ \__/ / __ \__ \__/ / __ \ \ \__/ / __ \__ \ \/ ____ \__ \ \/ / __ \/ / __/ ____ \ \ \__/       
                \/ ____ \/ / __/ ____ \ \ \ \/ ____ \ \ \__/ / __ \__ \__/ / __ \ \ \__/ / __ \__ \ \/            
                   \__ \__/ / __ \__ \ \/ / __ \__ \ \/ ____ \/ / __/ ____ \ \ \ \/ ____ \ \ \__/ / __            
                   __/ ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/ / __ \__ \ \/ / __ \__ \ \/ ____ \/ /            
                  / __ \__ \ \/ ____ \/ / __/ / __ \ \ \__/ ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/             
                  \/ / __/ / __ \__ \__/ / __ \ \ \ \/ ____ \__ \ \/ ____ \/ / __/ / __ \ \ \__/                  
                  __/ / __ \/ / __/ ____ \ \ \ \/ / __ \__ \__/ / __ \__ \__/ / __ \ \ \ \/                       
                 / __ \/ / __/ / __ \__ \ \/ / __ \/ / __/ ____ \ \ \__/ ____ \ \ \ \/ / __                       
                 \ \ \__/ / __ \/ / __/ / __ \ \ \__/ / __ \__ \ \/ ____ \__ \ \/ / __ \/ /                       
                  \/ ____ \/ / __/ / __ \ \ \ \/ ____ \ \ \__/ / __ \__ \__/ / __ \ \ \__/                        
                     \__ \__/ / __ \ \ \ \/ / __ \__ \ \/ ____ \/ / __/ ____ \ \ \ \/ ____                        
                     __/ ____ \ \ \ \/ / __ \/ / __/ / __ \__ \__/ / __ \__ \ \/ / __ \__ \                       
                    / __ \__ \ \/ / __ \/ / __/ / __ \/ / __/ ____ \ \ \__/ / __ \/ / __/ / __                    
                    \/ / __/ / __ \ \ \__/ / __ \/ / __/ / __ \__ \ \/ ____ \/ / __/ / __ \/ /                    
                    __/ / __ \ \ \ \/ ____ \ \ \__/ / __ \/ / __/ / __ \__ \__/ / __ \/ / __/                     
                   / __ \ \ \ \/ / __ \__ \ \/ ____ \/ / __/ / __ \ \ \__/ ____ \ \ \__/ / __                     
                   \ \ \ \/ / __ \/ / __/ / __ \__ \__/ / __ \ \ \ \/ ____ \__ \ \/ ____ \/ /                     
                    \/ / __ \/ / __/ / __ \ \ \__/      \ \ \ \/ / __ \__ \__/ / __ \__ \__/                      
                       \ \ \__/ / __ \ \ \ \/            \/ / __ \/ / __/ ____ \ \ \__/                           
                        \/      \ \ \ \/ / __               \ \ \__/ / __ \__ \ \/                                
                                 \/ / __ \/ /                \/      \ \ \__/ / __                                
                                    \ \ \__/                          \/ ____ \/ /                                
                                     \/                                  \__ \__/                                 


Create a new paste based on this one


Comments: