char a[99][99];i,x,y;main(j){for(;gets(a[++i]),j;puts(a))for(j=-1;y=a[i-1][j++/2],x=a[i][j/2]?:y;putchar(j%2*4&x+y?95:y&4?124:32))y|=a[i-1][j/2];}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page