divide rectangles by llhuii

n,p,q,i;main(c,s){for(;p?putchar(++i/(n=strlen(s+1)/c+3)/c?n=i=!p--,10:i*i%n-1?p%q<2&&i%n?45:32:p%q<2?43:'|'):scanf("%d%d",&q,&c)>!++n?p=n-3+2*q,q=p/q:gets(s););}

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

download

return to the top page