char* #ifdef r *J) { if( j < 3 || (M = atoi(J[1])) < 36 || (A = atoi(J[2])) < 12 || M > 2048 || A > 2048 ) { return printf("%s {36<=width<=2048} {12<=height<=2048} [seed]\n", *J); }I=M+1;C=I*A;R=6 ;for(q=malloc( C*2);R*R3?atoi(J[3]):(int*)0-&j);p=q;for(y=0;y.47?0:1:15;}for(t=0;t<3;t++){for (y=1;y3?2:0)for(z=v=-1;v<=1;v++)for(u=-1; u<2;u++)z+=q[(y+v)*I+x+u]&1;}p=q;for(x=0;x=C&&(x=strlen(q))>=C){x=t=+4;}if (t&3){for(v= +u%I;x%I-v&&q[x ]-2;x+=x%I>v?-1:1){q[x]=0;}for(;x-u &&q[x]-2;x +=x>u?-I:I){q[x ]=0;}q[x]=0;}*o=u=x;for(y=1;y;)if (!q[v=o[-- y]]){q[v]=+2; o[y++]=v-M-1;o[y++]=v-1;o[y++]=v+ I;o[y++]= v+1;}}p=q;for (y= 0;y1||z==u;*(E?&j:&z)=u){u=(j+z) /2;S=u/90. ; *J="\x1bPq\"1;1;%d;%d#1;2;100;100;100#1"; memset(b,v= 0,R*R);for(p=m;i(0)>0;p+=3){for(memset(o ,0,u*LL);i( 2)>0;p+=6){for(t=0;ty?v:y;*g=*g?*gx?*g: x;}}g =o ;for( y=0;yH:A?>D;LCRJWP" "WU`X`Y" "" "`[_]h`bj^mSuFt>j3ZDPDM':r;s" "t?" "" "q@oEoFnElDk>k /* */int t, M,A,R,C,I,LL,E ,*o,*g,x,y,z,t,u,v;void V(){for( v=0;*p- 45 &&p[v] ==*p&&v<99;v++){}if(v>3&&(x=strcspn (w,n )) >2){*w++=33;if(x>3&&v>9){*w++=v/10 +48;*w ++ =v%10+48;}else{v=v>9?9:v;*w++=48+v ;}p+=v-1;}* w++ =*p++;}void U(){for(;y<=v;y+=6){p =w;for(x=0;x63)p=w; }w=p;* w++=45;}}typedef double s;s(Z),S;s i(int d){return (p[d]-39)*S;}s l(s a,s d){return+a+(d-a) *Z;}s L(){return l(l(l(i(00 ), i(2)),l(i(2),i(4))) ,l(l(i(2),i(4 )),l(i( 4),i(6 ))));}void W(){E=C-03>(w+= strspn(w,n) )-q;{ ;}} #include/* */ #include #define r (s)rand()\ /*X*// RAND_MAX int main (int j, #include __FILE__ #/**/ endif