restore *.orig.c to each entry
Under each yyyy/dir there is a file of the form '*.orig.c' containing the original source code, or as close as we can get to the original source code.
This commit is contained in:
1 parent
cfd253683f
commit
2ba12ecc3c
320 files changed
+21365
No files matched your search
@@ -0,0 +1,62 @@
|
||||
#define j(n,r,i) A*n=R(r[i].a);//
|
||||
#define E X("syntax error\n",1)//
|
||||
#define d(n) A*n(A*x,A*y)//
|
||||
#define k(d,v) D(d);e v;//
|
||||
#define F X("fail\n",-1)//
|
||||
#define h(n) A*n(A*x)//
|
||||
#include <stdlib.h>//
|
||||
#define u(n) n[0].l//
|
||||
#include <stdio.h>//
|
||||
#define w union A//
|
||||
#define e return//
|
||||
#define N 5//
|
||||
#define q c=getc(p)//
|
||||
#define o(i,v) [i]={[1].p=v},//
|
||||
#define m(i,I,n) [i]={{I},[1].l=n},//
|
||||
#define g(n) A*r=C(&(A){.l=n});r[1].a=//
|
||||
#define s(x,y,i,q,n,o) if(x[3].a){if(u(x)==rT||u(x)==rC){i;if(q)k(y,x)}g(n)y;o;r[3].a=x;e r;}//
|
||||
//
|
||||
void X(char*f,int r){ fputs(f,stderr);exit(r);}typedef w{w* (*t) (w*x);w* (*l) (w*x,w*y);w*a;long long p;}A;h(R) {x[N-1].p++;e x;}h(Ch) ;h(Y) ;h(fA) ;d(fD) ;d(fT) ;d(fW) ;d(fCh) ;d(rA2) ;d(fA2) ;d(rY2) ;d(Y2) ;d(rS2) ;d(fS22) ;d(rD) ;d(rE) ;d(rT) ;d(rC) ;void D(A*f) {if(f&&!--f[N-1].p) {if(u(f)!=fW&&u(f)!=fCh) D(f[1].a);if(u(f)!=fT) D(f[2].a);if(u(f)!=rE&&u(f)!=rT&&u(f)!=rC) D(f[3].a);free(f);}}int ch=EOF,c;FILE*p;A T[256][2];void U(void) {do{if(c==EOF) e;if(T[c][0].t) e;if(!T[c][1].p) E;if(T[c][1].p==4) for(/**??/
|
||||
/
|
||||
q;c!='\n'&&c!=EOF;q);q;}while(1);}A*I(void){if(c==EOF)E;A*f=T[c];if
|
||||
(f[0].t!=Ch){q;U();}e f[0].t(&f[1]);}h(C){A*r=malloc(sizeof(A[N]));
|
||||
if(!r) X("memory error\n",-2); r[0]=*x; for(int i=1;i<N;i++)r[i]=(A
|
||||
){0};e R(r); }int main(int x,const char**y){if(x!=2)F;p=fopen(y[1
|
||||
],"rb");if(!p)F;q; U();while(c!=EOF){A*f=I();while(f[3].a){if(u(f
|
||||
)==rT){f=f[1].u(a)( R(f[1].a),f);}else if(u(f)==rC){T[96][0].t=Y;
|
||||
j(r,f,1) D(f); f=r;} else{g(fT)f;r[2].p=ftell(p)+(c==EOF);f=u(f)(
|
||||
R(f),r);}}D(f);}e 0;} h(Ch){A*r=C(x);q;if(c==EOF)E;r[1].p=c;q;U()
|
||||
;e r;}h(NL){A*r=C(x);r [1].p='\n';e r;}d(rT){j(r,x,2)D(y);k(x,r)}
|
||||
d(fD0){g(fD)y;k(x,r)}d( fA1){s(y,x,,1,fA2,)e u(x)(x,y);}d(fA2){j(
|
||||
a,x,1)j(b,x,3)k(x,fA1(a, u(b)(b,y)))}d(rA1){s(y,x,,0,rA2,)if(u(y)
|
||||
==fD0){g(fD)R(x[2].a);D(y );k(x,r)}A*r=fA(x[2].a);k(x,fA1(y,r))}d
|
||||
(rA2){j(f,x,1)j(a,x,3)k(x, rA1(f,u(a)(a,y)))}h(fA){R(x);if(x[0].t
|
||||
!=fA)e x;e rA1(x,fA(x[1].a) );}d(fD1){s(x,y,,1,rD,)e u(x)(x,y);}d
|
||||
(rD){j(a,x,3)j(b,x,1)k(x,fD1 (u(a)(a,y),b))}d(fD){A*a=fA(x[1].a);
|
||||
k(x,fD1(a,y))}h(Yt){(void)x;A *r=C(&(A){.t=fA});r[1].a=I();r[2].a
|
||||
=I();e r;}h(YE){(void)x;k(I(), I())}d(Y1){s(y,x,,1,Y2,)e u(x)(x,y
|
||||
);}d(Y2){j(a,x,1)j(b,x,3)k(x,Y1 (a,u(b)(b,y)))}h(rY1){if(x[3].a){
|
||||
if(u(x)==rT)e x;if(u(x)==rC){k(I (),x)}A*r=C(&(A){.l=rY2});r[3].a
|
||||
=x;e r;}if(u(x)!=fD0)e Y1(x,I() );D(x);T[96][0].t=Yt;g(fD)I();T
|
||||
[96][0].t=Y;e r;} d(rY2) {j(a, x ,3)k(x,rY1(u(a) (a,y)))}h(Y){(
|
||||
void)x;e rY1(I());}d(fK1){j(r ,x, 1)D(y);k(x,r)}d(fK0){g(fK1)y;
|
||||
k(x,r)}d(fS21){s(y,x,,1,fS22 ,)e u (x)(x,y);}d(fS22){j(a,x,1)j(
|
||||
b,x,3)k(x,fS21(a,u(b)(b,y)) )}A*rS1 (A*x,A*y,A*z){s(y,x,D(z),1,
|
||||
rS2,r[2].a=z)if(u(y)==fD0) {g(fD)C(& (A){.t=fA});r[1].a[1].a=R(
|
||||
x[2].a);r[1].a[2].a=z;k(x ,r)}j(r,x,2 )k(x,fS21(y,u(r)(r,z)))}d
|
||||
(rS2){j(a,x,3)j(b,x,2)j( f,x,1)k(x,rS1 (f,u(a)(a,y),b))}d(fS2){
|
||||
j(a,x,1) R(y);e rS1(x,u (a)(a,y),y);}d( fS1){g(fS2)R(x[1].a);r[
|
||||
2].a=y;k(x,r)}d(fS0){g (fS1)y; k(x,r)}d( fI){k(x,y)}d(fV){k(y,x
|
||||
)}d(fW) {putc(x[1].p, stdout);k(x,y)}d(fR ){ch=getc(stdin);A*r=
|
||||
C(&(A){.l=ch!=EOF?fI :fV});k(x,u(y)(y,r))} d(fCh){A*r=C(&(A){.l
|
||||
=ch==x[1].p?fI:fV}) ;k(x,u(y) (y,r))}d(fP){ A*r=C(&(A) {.l=ch!=
|
||||
EOF?fW:fV}); if(ch !=EOF)r[1].p=ch;k(x,u(y)( y,r))}d(rE){if(y[3
|
||||
].a==y)e u(y)(y,x );j(r,x,1)k(x,u(r)(r,y))}d( fE){g(rE)y;r[3].a
|
||||
=r;k(x,r)} d(fT) {g(rT) R(x[1].a); r[2].a=y;r[ 3].a=r; if(fseek
|
||||
(p, x[2]. p -1, SEEK_SET))F;q;U();k(x,r)}d(rC){ (void)x;e y;}d(
|
||||
fC){g(rC)y;r[3 ].a=r; T[96][0].t=YE; k(x,r)}A T[ 256][2]={m(46,
|
||||
Ch,fW)m(63,Ch ,fCh)o(32,1)m(64,C,fR)[96]={{Y}},o( 9,2)m(99,C,fE
|
||||
)o(10,3)m(100,C,fD0)m(101,C,fC)o(35,4)m(105,C,fI)m(107,C,fK0)o(11,5
|
||||
)o(13,6)m(114,NL,fW)m(115,C,fS0)m(118,C,fV)o(12,7)m(124,C,fP)};/*/;
|
||||
int main(){printf("```s``." "3`.2. `.d`" "``k.rik" "`d`.y`" "``."//
|
||||
"l``c.n.o.gr```s`.n`.e`.c.h```.r`.u```k.td.y. i`.c`.e`.tk\n");}/**/
|
||||
@@ -0,0 +1 @@
|
||||
e,n,j,o,y;main(){for(++o;n=-~getchar();e+=11==n,y++)o=n>0xe^012>n&&'`'^n^65?!n:!o?++j:o;printf("%8d%8d%8d\n",e^n,j+=!o&&y,y);}
|
||||
@@ -0,0 +1,30 @@
|
||||
#include <locale.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <wchar.h>
|
||||
|
||||
#define P 9<<23^1
|
||||
#define A 1;O-L;L=0<L[o]?L[K][k]=L
|
||||
#define N for(O=l[k];l-O;O=O[k])for(L=O
|
||||
#define G 1+c[C];c[C]-I;I=0<(l=I[o])?
|
||||
#define R(A,M) wcschr(1+M,A)
|
||||
|
||||
static int C[97],d,k[98^P],O,l=1,o[98^P],L,K[98^P],v[97],V[98],c;
|
||||
static void y(){l[V][v]=l[v][V]=l;N-A,L[k][K]=L,++L[o][o],L-1:L[k]);}
|
||||
static void b(){N+A[k],L[k][K]=L[K],--L[o][o],L+1:L[K]);l[V][v]=l[v];l[v][V]=l[V];}
|
||||
static wchar_t s[P],*w=1+s,*p[P],z[99],**q=p,*W=1+s,*Z;
|
||||
int main(int I,char**j){if(l<I){wint_t S;setlocale(LC_CTYPE,"");
|
||||
for(mbstowcs(l+z,l[j],97);l[z];++l)V[l[v]=l+1]=l[K]=l[k]=l;
|
||||
for(v[*V=l-(*v=1)]=L;WEOF-(S=getwchar())&&P>W-s;++W)if(33>(*W=S)){
|
||||
for(*W=L,Z=w;*Z;++Z)if(R(*Z,Z)||!R(*Z,z)){W=w-1;goto M;}
|
||||
for(I=L;I[w];++I)++o[O=R(I[w],z)-z],k[K[l[o+I+1]=O]=k[l[K+I+1]=O[K]]=l+I+1]=O;
|
||||
*q++=w;l[k]=l+I;o[l+=I+1]=p-q;l[K]=l-I;M:w=1+W;}
|
||||
*j="Dictionary too long\n";if(WEOF-S)H:return fputs(*j,stderr),**j/36;
|
||||
d=2[j]?atoi(2[j]):97;while(P){if(I=*v){for(O=P;I;I=I[v])O>I[o]?l=I,O=I[o]:P;
|
||||
b();c[C]=l[k];T:if(l-c[C]){for(I=G b(),I+1:I[K]);if(d>c++)continue;}else y();
|
||||
}else{for(;I-c;++I){for(O=I[C];0>~O[o];++O);printf(!I+" %ls",p[~O[o]]);}
|
||||
putchar(10);fflush(stdout);}
|
||||
if(!c--)return 0;
|
||||
for(I=-G y(),I-1:I[k]);
|
||||
l=c[C][o];c[C]=c[C][k];goto T;}}
|
||||
*j="Need an argument or two\n";goto H;}
|
||||
@@ -0,0 +1,9 @@
|
||||
#include<stdio.h>
|
||||
int main(){int a=0,b=a;long long c[178819],d=8,e=257,f,g,
|
||||
h,i=d-9;for(;a<178819;){c[a++]=i;}for(a*=53;a;a>>=8)putc\
|
||||
har(a);if((f=getchar())<0)return 0;for(;(g=getchar())>=0;
|
||||
){h=i=g<<8^f;g+=f<<8;a=e<(512<<a%8|(a<7))||f>256?a:a>6?15
|
||||
:a+1;for(;c[i]>-1&&c[i]>>16!=g;)i+=i+h<69000?h+1:h-69000;
|
||||
h=c[i]<0;b|=h*f<<d;for(d+=h*(a%8+9);d>15;d-=8)putchar(b=b
|
||||
>>8);f=h?g-f*256:c[i]%65536L;if(a<8*h){c[i]=g*65536L|e++;
|
||||
}}b|=f<<d;for(d+=a%8;d>-1;d-=8)putchar(b>>=8);return!53;}
|
||||
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#define f(f,g){z e=0;for(;e<f;e++)g;}
|
||||
#define i(f,g)static z f(z a){return g;}
|
||||
#define j(f,g)static void f(z*a,z*b,z*c){g}
|
||||
#define h(f,g)static z f(z a,z b,z c){return g;}
|
||||
#define g(f,g,h,i,j)static z f(z b){z a=g,c=h;for(;i)a=j;return a;}
|
||||
typedef unsigned char y;typedef unsigned long long z;extern y*w;static z b(z a,z b){return a>>b|a<<(64-b);}i(_,
|
||||
(a>>6)^b(a,61)^b(a,19))i(_a,b(a,39)^b(a,28)^b(a,34))h(x,((a^b)&c)^(a&b))i(u,b(a,41)^b(a,18)^b(a,14))h(t,(((((3*(a*c+b*b)>>9)+(3*
|
||||
b*c>>32))*a>>21)+(3*a*a*b>>6)+((b>>4)*(b>>4)*b>>46))>>18)+a*a*a)h(m,t((b<<16)|(c>>48),(c>>24)%(1<<24),c%(1<<24))>>48<a)h(s,(a&b)
|
||||
^(~a&c))i(r,b(a,1)^b(a,8)^(a>>7))g(o,0,0,c<8;c++,a*256+w[b*8+c])g(d,0,0,c<13;c++,a*31+w[b*13+c]-96)g(p,0,4,c;c/=2,a|c*m(b,a|c,a)
|
||||
)g(q,0,1ull<<63,c;c/=2,a|c*m(b,p(b),a|c))g(v,b>1,2,c<b;c++,a&&b%c)g(l,b?l(b-1)+1:2,a,!v(c);c++,c+1)j(n,z d=a[7]+u(a[4])+s(a[4],a
|
||||
[5],a[6])+q(l(*b))+c[*b%16];f(8,a[7-e]=e-3?e-7?a[6-e]:d+_a(a[0])+x(a[1],a[2],a[3]):d+a[3])f(16*(*b%16>14),c[e]+=c[(e+9)%16]+r(c[
|
||||
(e+1)%16])+_(c[(e+14)%16])))j(k,f(8,b[e]=a[e])f(80,n(a,&e,c))f(8,a[e]+=b[e]))int main(){z a[8],b[8],c[16];f(8,a[e]=d(e))f(16,c[e
|
||||
]=e-15?o(e):d(8))k(a,b,c);f(16,c[e]=e?e-15?0:11264:1ull<<63)k(a,b,c);f(8,printf("%016llx%s",a[e],e-7?"":"\n"))return!w;}y*w=(y*)
|
||||
"crsmyiajqhwy{unwa|hjoi`hlxhpxrzb~edko~rtr~ileqyjk`znqgsuitvgqnfdfa||wedvnmhozkpokootqzcexeld~oibqzpcsuw{ib{x`m`hsa`jmn}wcfzpb";
|
||||
@@ -0,0 +1,76 @@
|
||||
#include <X11/Xlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#define G >>
|
||||
#define O <<
|
||||
#define S E(4)k=V+(V&2),
|
||||
#define P(V,I) U(q+V,t*4+I)
|
||||
#define E(b) for(int V=0; V<b; V++)
|
||||
#define R a d; long t,r,c,k; unsigned q[16]
|
||||
long H,A,s,h,
|
||||
L, I, f, e; unsigned
|
||||
F=-1,D,l,i,g= 2; typedef
|
||||
unsigned long a, *T; typedef unsigned*o; T p,
|
||||
C; o n, w; a y= -1,j,m; void J(unsigned I, o f){
|
||||
R; S f[k ]=C[I]& 64?p[I+(V&2)]G V%2*32:p[I]G V
|
||||
%2*4+16 *(V&2)& F ; } void u( int l, int g,
|
||||
long I, long b, long M){ R; c=4l O g; r
|
||||
= Y G 5 O s; t= X G 5 O s ; if(l<194&s>
|
||||
6|I>=H+ t|I+2 *c <=H-t|b>=A +r|b+ 2* c
|
||||
<= A-r) return; o n=w+(b-A +r O 4 G s
|
||||
)*D+(I- H+t O 4 G s); if( g<=s -7){
|
||||
*n =-1; return; } J(l,q); if( g--){
|
||||
S u(q[k ],g,I+V %2*c,b+V /2*c,M*8
|
||||
+V ); } else{ t =0; r=4- s; if(r<
|
||||
0){ t=- r; r=0; } M^=M G 1; E(8 O
|
||||
r){ for (k=0; k <8 O r;k ++){n[(V
|
||||
G t)*D+ (k G t) ]|=V*k|r <2?-(p[l
|
||||
]G(V G r)*8+(k G r)&1)|M &513 O 12
|
||||
:99; } } } } a U(o v,a j){ R; r=0; t=j/4; T N=(T)v; if (t>0){ S J(v[k],q+
|
||||
2*k),r=917*r+v[k]; if(j&1)return P(5,-2);d=N[0];} else { r=(d=v[ 0]|v[1 ]O
|
||||
4)+719*(m=v[4]|v[5]O 4); if(j&1)return d G 18&3855| (m &15420 ) O 14; d|=
|
||||
m O 32 ; } for(; c=n[r&=Z-1]; r++)if(d==p[c]&(!t|p[c+2 ]==N[2])) break; int
|
||||
L=t--+1; if(L>h)L=h; if(C[c]&63^L|!c){ if(!c){ p[n[r]= c=g]=d; p [g+=2]=N[
|
||||
2]; g+=t>=0; } if(t<0){ E(2-!h){ r=0; E(4){ a B=d G V& y; B+=d*2 G V&y; B+=
|
||||
d/2 G V &y; B+= (B O 8)+( B G 8 ); r
|
||||
|=(((B+ y&y*6^3 *y)+y G 3 )&(d G V|B
|
||||
)&y)O V ; } d=r ; } d=(d G 18&F )O 32;
|
||||
} else{ E(11)if (V+1&3)q[V ]=P(V,0); S
|
||||
q[k]=P( k,(t>h- 2)); d=64| P(0,2)O 32;
|
||||
} C[c]= L| d; } return j&2 ?c:C[c]G 32
|
||||
; } int main(){ n=calloc(Z,8); F/= 17;
|
||||
w=n+Z+F / 256 ; char*b=(char*) w-99;
|
||||
o z=w+F /32 ,Q; p=(T)(99999+z); C=
|
||||
p+1; R; y/= 15; E(64){ { S q[k]=
|
||||
l; } t= V; l=P( 0,2); g+=!V; } Display*_=XOpenDisplay(0); while(gets(b)) {
|
||||
if(I ++ &&b[0]^ 35){ if(sscanf(b,"%d%d%d%d%d",&t,q,q+1,q+2,q+3)==5){ t-=3;
|
||||
S q[k]= q[V]?w[ q[V]]:t*3-1; } else{ t=p[0]=j=k=r=0; while(f=b[r++]){ if(f
|
||||
==42)p[ 0]|= 1l O j*8+k; k++; if(f==36)j++,k=0; } J(0,q); } l=w[++D]=P(0,2
|
||||
); } } *z=l; z[1]=t; Window f = XCreateSimpleWindow(_, RootWindow(_,0),0,0,X,Y,1,0,0); Q=z+=2; D=X+128; XImage*j=
|
||||
XCreateImage(_, DefaultVisual(_,0),24,2,0,(char*)w,X,Y ,32,D*4);
|
||||
XEvent m; XSelectInput( _, f, 1 ); XMapWindow(_, f); d : printf(
|
||||
"G:%ld M:%d L%d S%d\n",e,g,t,s); K:L-=L>2; u(l,t,-4l O t,-4l O t
|
||||
,0); XPutImage(_,f,DefaultGC(_,0),j,0,0,0,0,X,Y); E(Y* (X+128))w
|
||||
[V]=0; if(XCheckWindowEvent(_,f,1,&m)){I=XLookupKeysym (&m.xkey,
|
||||
0) &63; if((I-1 &15)<4)*(
|
||||
I&1?&H: &A)+=(I -1&2)-1 O
|
||||
s +2; i ^=I==8; h+=(I==29
|
||||
)-(h&&I ==27); s+=(I==45
|
||||
)-(s&&I == 61); L^=I==32|
|
||||
2*(I == 48) ; } if(L&1 ){
|
||||
if(!i){ e+=1l O h; d=t+2;
|
||||
do{E(16 )q[V]=3 *t-1; t++
|
||||
; r=t<d |t<h; J (l, q+5);
|
||||
S q[k]= P(2*k,- 2); l=P(0
|
||||
,2 *r); } while (r);while
|
||||
(--t-1) { J(l,q +10); S J
|
||||
(q[10+k ],q+2*k );E(16)if
|
||||
((V^V/2 )&5^5&& q[V]-3*t+
|
||||
4){ *++ z=l;*++ z=t;*++z=
|
||||
e; goto d; } l= P(5 ,-2);
|
||||
} }else { if(z> Q){ z-=3;
|
||||
e=*z; t=z
|
||||
[-1]; l=z
|
||||
[- 2] ; }
|
||||
goto d; }
|
||||
}goto K;}
|
||||
@@ -0,0 +1,63 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/un.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/time.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
struct sockaddr_un u,v={.sun_family=1},*w=&v,x;struct timeval b,c ;
|
||||
fd_set r,t[ 1]; enum{z=V*(11*W+5)+15};struct{int A,B,C,D,E,F,G,H ,I ;
|
||||
char J,K[z];}A ,B;y(int y){return FD_ISSET(y,t);} int d,e,f,h, i,
|
||||
j,k,l,m,n,o,p, q;unsigned int I=sizeof(x),J=sizeof(B );char* E
|
||||
=B.K,*D="\e[" "0;30;40m \0\e[0m\n\0#!/bin/cat\n\e" "[1A" ,
|
||||
*C="\e[0m\e" "[2J\e[0;0H",*F,*G=&v.sun_path,H;K( int K)
|
||||
{strcat(E,D+ K);}struct termios a;N(){p=0;while ( ++
|
||||
p<9)*(p+ G)= rand()%13+65;p=bind(d=socket(1,2, 0) ,
|
||||
w,I);FD_SET( d,&r);}O(){close(4);fopen(F,"r" ) &&
|
||||
(read(4,B.K, z ),close(4),unlink(F)),w=&x;N() ;d =
|
||||
3;}L(int L){ B .A=L;return sendto(d,&B,J,0,w ,I *!
|
||||
!w);}M(int M ) {return recvfrom(M,&A,J,0,&u , &
|
||||
I);}main(int P ,char**Q){for(p=0,K(18);p++ <V ;K(
|
||||
12))for(d=0; d ++<W;)K(0);if(P==2) for(F= Q [1],
|
||||
srand(getpid ( )),FD_SET(0,&r),strcpy(G ,F ),x=v
|
||||
,*G=s,B.J=44 , N(),O(),L(0);P++-4;)for ( (float)
|
||||
tcsetattr(1,0, ((int)tcgetattr(1,& a) ,a .c_lflag
|
||||
^=g,&a));P-4;) {gettimeofday(& b,0); p= b. tv_usec
|
||||
;q||(q=(3<<19) +p);c.tv_usec=0+(q-p ) % 999999;
|
||||
d=3;w=&x;*t=r; select(5,t,0,0,&c) || (B .E^=1,L
|
||||
(7),q=0);y( 0) &&(!read(0,&H,1), H %= 65,H^34
|
||||
||(B.D=B.D%6+1 ),H^47&&H^43||(B .J =H ==B.J?B
|
||||
.E=0,L(8),44:H ),H<4&&(B.E=0,L ( 7),B .F+=H==
|
||||
2&(B.F-=H==3&& B.F)!=W-3,B. G += H==1& (B.G-=!
|
||||
H&&B.G)!=V-3,B .E=1),B.J^ 43 && (B.H=B. F,B.I=B
|
||||
.G),L( 7),H^48 ||(B.E=0,L( 7 ),L(2))) ;if(y(4
|
||||
))if(M(4),p=4, A.A)while( ++ p<=e)send( p,&A,J,
|
||||
0);else w= &v, connect(( N (),B.C=d),& u,I),d>
|
||||
e&&(e=d),w=0,L (4);if(y (3 ))if(M(3),A. A^5){A.
|
||||
A^1||L(+0),A.A ^4||(B. B ||printf("%s%" ".*s\r"
|
||||
" \e[97mmode:" ,C,z-5,A .K),B.B=A.C,B.D ||(B.D=
|
||||
B.B%6+1),strcpy (B.K, A. K));if(A.A==2)if( B.B^5||
|
||||
close(A.B),A. B ==B. B ){if(6==1+B.B)for( unlink(
|
||||
F),write(creat(F,511), B.K,z),d=5,w=0;++d<= e;)if(L
|
||||
(5)+1)for(M(d);++d<= e;)L(1);(int)printf(C );break
|
||||
;}if(A.A>6)for(h=A. F,i=A.G,j=A.H,k=A.I,f= A.E,l=h
|
||||
<j?1:-1,m=(j-h)*l ,n=i<k?1:-1,o=(k-i)*n,p= (m>o?m:
|
||||
-o)/2;E=34+(B.K+ (i+1)*(5+W*11)+h*11),47^A .J&&43^
|
||||
A.J|8^A.A||(*E= 48 +A.D),*
|
||||
(E-3)=A.D*(A. D +48!=*E
|
||||
)+48,*(E-6)= A. E*7+48,
|
||||
*(E+2)=f ? 42:32,printf("\e[%d;%dH%.11s\e[%d;%dH\e[0;4"
|
||||
"%dm%c%s" "%s",2+i,h+2,E-8,V,8,B.D,B.J+65,C+8,D),j^h|i^
|
||||
k;)(d=p )>-m&&(p-=o,h+=l),d<o&&(p+=m,i+=n),f=0;fflush (
|
||||
stdout );}else&v+111,(unsigned int)O(),/* IOCCC 2019 */
|
||||
+L (0
|
||||
) ,
|
||||
w =&
|
||||
u, L(
|
||||
6) ;
|
||||
}}
|
||||
@@ -0,0 +1,126 @@
|
||||
#define o void/*
|
||||
r
|
||||
bt
|
||||
q
|
||||
*/
|
||||
char*d="o x!!(){f[*r--]();}!!#define o void/*!r!bt!q!*/!char*d=!!o(*f[])()={b!!,*q;o(*f[128])();int*r,t[9999],*h=t+127,\
|
||||
n;o x0a(){f[*r--]();}int main(){f[0]();f[59]();}o v(int x!){for(q=d+x;*q+q[1]-66;q++)*++h=*q-33?*q:10;}o a(int x){*++r=\
|
||||
*++h=x+48+x/10*39;}o b(){*h=1;r=2096+t;v(21);for(*++h=34,q=!d;*q;t[*++h=*q++]=1){(q-d+8)%119?0:(t[*++h=92]=1,t[*++h=10]\
|
||||
=1);}for(v(t[*++h=34]=71);++n/126-1;n/13?*++h=10:0){*++r=44,*!++r=48,t[n]?*r+=72,v(0),a(n/16),a(n%16),v(5),h-=n-10?0:19\
|
||||
:h;}v(57);*++r=125;}!!",*q;o(*f[128])();int*r,t[9999],*h=t+127,n;o x0a(){f[*r--]();}int main(){f[0]();f[59]();}o v(int x
|
||||
){for(q=d+x;*q+q[1]-66;q++)*++h=*q-33?*q:10;}o a(int x){*++r=*++h=x+48+x/10*39;}o b(){*h=1;r=2096+t;v(21);for(*++h=34,q=
|
||||
d;*q;t[*++h=*q++]=1){(q-d+8)%119?0:(t[*++h=92]=1,t[*++h=10]=1);}for(v(t[*++h=34]=71);++n/126-1;n/13?*++h=10:0){*++r=44,*
|
||||
++r=48,t[n]?*r+=72,v(0),a(n/16),a(n%16),v(5),h-=n-10?0:19:h;}v(57);*++r=125;}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
o x20(){f[*r--]();}
|
||||
o x21(){f[*r--]();}
|
||||
o x22(){f[*r--]();}
|
||||
o x23(){f[*r--]();}
|
||||
|
||||
o x25(){f[*r--]();}
|
||||
|
||||
|
||||
o x28(){f[*r--]();}
|
||||
o x29(){f[*r--]();}
|
||||
o x2a(){f[*r--]();}
|
||||
o x2b(){f[*r--]();}
|
||||
o x2c(){f[*r--]();}
|
||||
o x2d(){f[*r--]();}
|
||||
|
||||
o x2f(){f[*r--]();}
|
||||
o x30(){f[*r--]();}
|
||||
o x31(){f[*r--]();}
|
||||
o x32(){f[*r--]();}
|
||||
o x33(){f[*r--]();}
|
||||
o x34(){f[*r--]();}
|
||||
o x35(){f[*r--]();}
|
||||
o x36(){f[*r--]();}
|
||||
o x37(){f[*r--]();}
|
||||
o x38(){f[*r--]();}
|
||||
o x39(){f[*r--]();}
|
||||
o x3a(){f[*r--]();}
|
||||
o x3b(){f[*r--]();}
|
||||
|
||||
o x3d(){f[*r--]();}
|
||||
|
||||
o x3f(){f[*r--]();}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
o x5b(){f[*r--]();}
|
||||
o x5c(){f[*r--]();}
|
||||
o x5d(){f[*r--]();}
|
||||
|
||||
|
||||
|
||||
o x61(){f[*r--]();}
|
||||
o x62(){f[*r--]();}
|
||||
o x63(){f[*r--]();}
|
||||
o x64(){f[*r--]();}
|
||||
o x65(){f[*r--]();}
|
||||
o x66(){f[*r--]();}
|
||||
|
||||
o x68(){f[*r--]();}
|
||||
o x69(){f[*r--]();}
|
||||
|
||||
|
||||
|
||||
o x6d(){f[*r--]();}
|
||||
o x6e(){f[*r--]();}
|
||||
o x6f(){f[*r--]();}
|
||||
|
||||
o x71(){f[*r--]();}
|
||||
o x72(){f[*r--]();}
|
||||
|
||||
o x74(){f[*r--]();}
|
||||
|
||||
o x76(){f[*r--]();}
|
||||
|
||||
o x78(){f[*r--]();}
|
||||
|
||||
|
||||
o x7b(){f[*r--]();}
|
||||
|
||||
o x7d(){f[*r--]();}
|
||||
o(*f[])()={b,0,0,0,0,0,0,0,0,0,x0a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,x20,x21,x22,x23,0,x25,0,0,x28,x29,x2a,x2b,x2c,x2d,0,x2f,x30,x31,x32,x33,x34,x35,x36,x37,x38,x39,x3a,x3b,0,x3d,0,x3f,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,x5b,x5c,x5d,0,0,0,x61,x62,x63,x64,x65,x66,0,x68,x69,0,0,0,x6d,x6e,x6f,0,x71,x72,0,x74,0,x76,0,x78,0,0,x7b,0,x7d};
|
||||
@@ -0,0 +1,44 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define k 16
|
||||
#define i 24
|
||||
#define q(a,b)(w[a]*w[b])
|
||||
#define u(u)(int)((u[w]>0?1:-1)*.5f+100*u[w])
|
||||
#define j(j,J)w[j]=w[j]>J?-(J):-w[j];
|
||||
#define D(D)setvbuf(D,0,_IOFBF,a+1);
|
||||
#define l(l)(K)(l>a?a:l>-a?l:-a)
|
||||
#define g(g){fprintf(stderr,"%s\n",g);return 1;}
|
||||
|
||||
typedef int32_t I;
|
||||
typedef int16_t K;
|
||||
|
||||
#define C(A,B) w[2 B]=t[ A[d[A];w[3 B]=w[1 B]+q(4 ,2 B);w[4 B]=w[2 B]-q(3 \
|
||||
B,4);z[A*=w[3];z[A+= q(3 B,9);t[A[f[k+A]=z[A;k[f+ A=d[A++;if(d[A>=d[i+A)d[A
|
||||
FILE*n=0,*h=0;float*t[i] ;void m(){if(n)fclose(n) ;if(h)fclose(h);for(I s=0
|
||||
;s<i;s++)if(s[t])free(s[ t]);}int main(int A,char **b){I*S=(I*)"V@WDfcvcen"
|
||||
"w#vf\4sg\5Gdb&ohwrs'na" "dm\11`g'}k|\12d~\x7f%{" "mz\14Nlc*z.a~ja/`ed`ee1"
|
||||
"wx~w\22Erev3r}xq5x`fb6" "ts7&!7zqlk5(4+:yr{uu~w" "o2\34Otgx'>;)0,y\25[RY"
|
||||
"\0MHY\33\4\26F\7\7)tFW" "\4IM\\\37\0\21A\3\3,bF" "JWNFO\22\15\35M\14\14 *"
|
||||
"**",a=65535,f[3*i+k],O[ 42],*o =O,*c=f+1,*d=f +i +k,s,v;char*y; float z[i]
|
||||
,X[i],w[21]={1.60f,.30f, 0.5f,.06f,.77f,.965926f, .258819f,.64731f,.9f};for
|
||||
(s=0;s<5;s++)if(A>s+3){s [w]=strtod(b[s+3],&y);w[ s]/=*y==37?100:/*reverb!!
|
||||
v[3]=2<<c[q+k+3];s=3+k+y printf("Hello, world!"); ;w[4]=(w+3)[k-1];)q=3*/1;
|
||||
} for(s=0;s<42;s++) s[O] =S[s]^16843009*(s+1);y=( char*)o+12;j(1,1)h=fopen(
|
||||
1<A?3[b-2]:y+5+k,y);if(! h)g(y+6)j(3,1)atexit(m); j(2,1)D(h)if(!fread(f,44,
|
||||
1,h))g(y+6)j(1,0)if(*++c !=*o++||2[--c]!=1[o]||8[ c--]!=*o)g(y+6) w[0]*=(12
|
||||
[f]=4[++c]>>k,6[f]);j(0, 6e5f)j(0,-4e3f)j(2, 0)f[ 13]=(I)*w+f[10]/(2*12[f])
|
||||
;K*e=(K*)(f+ 10);j(3,1)w [9]=3[w]<0?1+3[w]:1-w[3] ;if( 3<=f[12]||(4[c++]&a)
|
||||
!=1|| 6[c--]>>k!=k) g(y+ 59)7[c]=k/2*(4[c]=5+4*(a >>=1))-i+20;c[6]=2*c[6]/f
|
||||
[12];f[1]=20+(10[f]=f[13 ]<<2)+k;n=fopen(A>2?1[b+ 1]:y+28,y+3);if(!n)g(y+36
|
||||
)D(n)fwrite(f,28+k,1,n); printf(y+99,w[0]/6[f],u( 1),u(2),u(3));*X=(*w/=k);
|
||||
1[X]=q(0,8);for(s=0;s<i; s++){if(s>1)s[X]=X[s-2]* 7[w];s[d+i]=(I)s[X];s[z]=
|
||||
(s[d]=0);s[f+k]=1;if(s[X ]>99)f[k-1]=(s-1)|1;s[t] =calloc(sizeof(float),s[d
|
||||
+i]);}while(++f[15]<12); for(s= 14[f]=0;s<f[13];s ++){if(f[14]||(10[f+4] =!
|
||||
fread(e+1,2*f[12],1,h))) e[f[12]=1]=0;w[11]=(w[15 ]=w[k]=e[12[f]],w[10]=e[1
|
||||
]);for(v=0; v<i;v+=2){w[ 14]=w[11];w[19]=w[k];if( v<f[15]){C(v],+10)=0;C(v+
|
||||
1],+15)=0;}11[w]=q(5,14) -q(6,19);w[k]=q(6,14)+q( 5,19);}w[k]*=w[2];w[11]*=
|
||||
w[2];w[11]+=q(10,1);w[k] +=q(15,1);w[20]=w[11];1[ e]=l(20[w]);2[e]=l(k[w]);
|
||||
fwrite(e+1,4,1,n);}}//=w +=q(32];f[1]=36+(10[f&y) ;w[s]/=*y==37?1;59)7[c]=k
|
||||
@@ -0,0 +1,33 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#include<unistd.h>
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
//@ //
|
||||
char _int[]={37,99,0,10,0,71,111, 111,100,98,121,101,32,58,45,41,10,0,27,91, 72,
|
||||
27, 91,74,0,27,91,37,100,59,37, 100,72,0,27,91,37,100,109,0,0,0,-30,-108, -125,0,-
|
||||
30, -108,-127,0,-30,-108,-109,0, -30,-108,-113,0,-30,-108,-101,0,-30,-108, -105,0,
|
||||
33, 0x20,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0
|
||||
,0,0 ,0,0,0};main(){void* y3=stdout,*s0=stdin,*(*mv)(size_t)=& malloc;int qq_,*hh,
|
||||
qf,(*g4) (void*)=&fflush,(* z1)(const char*,...)=&printf,(*p0)(int)= &putchar,c=0,
|
||||
i,dd,sz,h ,s,e,pr,*trundle,* vp5,*nqd,oo[10];char*p5;goto cow;pic:g4(y3 ); sz=dd*h;
|
||||
hh=mv( sizeof(int)*sz); z1(_int+18);goto china;tokyo:;if(qq_== qf) goto ten ;c=hh [
|
||||
qq_++]; oo[0]=dd;oo[1]=h;oo [2]=c%dd;oo[3]=c/dd;oo[4]=0;{int x= oo[2], y=oo[3],dd=*
|
||||
oo,h= oo[1],i=x+y*dd;if(x+ 1<dd&&(p5[i+1]==32||p5[i+1]==33)) oo[5+oo[4]++ ]=i+1;if(
|
||||
x-1> -1&&(p5[i-1]==_int[66] ||p5[i-1]==_int[67]))chew: oo [5+oo[4]++]=i -1;if(y+1<h
|
||||
&&p5 [i+dd]==_int[67]||p5[i +dd]==_int[66])oo[5+oo[4]++]= i+ dd;if(y-1>-1&& p5[i-dd]
|
||||
==_int [67]||p5[i-dd]==_int [66])chun:oo[5+oo[4] ++]=i -dd;}if(c&1?nqd [c]:vp5[c] )
|
||||
goto tokyo;wow:;if(oo[4]-- <=0) goto chin;i=oo[5+oo [4]]; if((i&1?vp5[i]: nqd[i])==0
|
||||
){ trundle[i]=c;usleep( 25000) ;g4(y3);z1(_int+34 ,_int[ 67]);z1(_int+25, 1+i/dd,1+i%
|
||||
dd); p0(88);if(i==e)goto z; i&1?(vp5 [i]=1):(nqd[i] =1);hh[ qf++]=i;}goto wow;chin:c
|
||||
&1?( nqd[c]=1):(vp5[c]=1); goto tokyo; z:;z1(_int+34, 36);z1( _int+25,1+e/ dd, 1+e%dd)
|
||||
;p0( 33);tww:;if(trundle [i]==s)goto ten;i=trundle [i]; usleep(50000) ;z1( _int+34,35
|
||||
);z1( _int+25,1+i/dd, 1+i%dd);p0(47) ;g4(y3);z1( _int+34 ,33);z1(_int +25,1 + s/dd,1+s%
|
||||
dd);p0 (95);goto tww;ten:;z1(_int +25,h+3,1); g4(y3); goto pio; cow:; {int c=0;s=e=-1
|
||||
;char** strs=mv (1000),d;h=0;for(; h<1000;){ char*s= mv(512);if (fgets (s, 512, s0) ||
|
||||
feof(s0)) { dd= strlen(s)>dd?strlen( s):dd; strs[h]= s;h+=1;if (feof(s0 ) &&(h--|1))goto
|
||||
tau;}else goto ten; }tau:p5=mv(dd*h);for( int i=0; i<dd*h;i +=1)p5[i] =040;for (int i
|
||||
=0;i<h;i ++){ memcpy(p5+i*dd,strs[i], strlen( strs[i])) ;for(int q=0; ((d=strs[i][q])
|
||||
||1)&&q<dd&&((d== 64?s=i*dd+q:d==33?e=i *dd+q:d== 10?p5 [i*dd+q]= 040:13)||1);q++); }
|
||||
if(s==-1||e==-1)goto ten; goto pic;}china:;for(int r=0;r<sz; r++){z1(_int+ 25,1+(r
|
||||
/dd),1+r%dd);p0(p5[r]);} trundle=mv(sizeof(int)*sz);vp5=mv(sizeof(int)*sz);nqd = //
|
||||
mv(sizeof(int)*sz);trundle [s]=0;hh[0]=s;qf=1;qq_=0;goto tokyo;pio:;} //! //
|
||||
@@ -0,0 +1,48 @@
|
||||
#define x 0/**/
|
||||
char*v,*y="33Yb59@&iBFApt;[[h3V19\\3<:4cJ!U 2eT18pC,Qqik4J:sh?HUXMrR(-l0R\"!eKZcI!@E(@B,C/*!aogn5LbK/e=2CmReb+6,]kD!iOC9DEOC9Dc1EV6976c?&s)Be;P;E^tl2eUYkg*#Yf:6^d[Mg_P;VGCr823^L_<X+j2,%nD20Ls lmpi&I(*hV=+p aTO`r.b1<i[/R\\t1,KBt)\\%;\\@27H>^#d6B!tb-on27d%i_OS5(W5eV-=M14kYO);Fe7k!N41<iX*T,kHW,&)_l&L)'0:Jj%j7^h+JU /9pZn&Td:&T%'TE<7>LW%m/R\\rON3-=G]^akjT778YCJ7B8e-5E#RX R=Ig8#/pDdAI;=a[ ISbp't+ZLJ;lUO71C)b5[Y)qTWmFJ)G1ehmS<.`n3RnE IG+G_A`CE=?hZU)bScgt7R3GNs+V(HQLL_R)n4;]#cUR.p>5!^4T3pQg^o//WLATCE18mSUme[Q<53e:')Q_%<L$1lKOnFD(R3%*jj85VW+#8Wt*Ud,1D7AKcdh<9r%igC$2</HD7X$K_0Rr/>L.*D2%;[0B+#8UANT1.tSd/^@L$&a6^g@jYNMC7O<rPWO5AfA;C'9WnLn9E:0d:R\\hAZ^m=/09d.R$Jd%:Gp hB-g4&N!VO)$;iED1:F`^`UrnWCSZ!L$Tdma!_hn7H0F$^MT(-Ln9F_Ljfp9*h8Er!<.g.h_7@b0l03?a+]`=dIoY>WCKOk&#[9FCQ#WFoga(tK<[PG6@5k2KY\\ oW':M;e//kd\"[l,_V?UlZ,m(Hh?O81mhM!G18 ]7m?X7e^[7EZYj[;kR,YXD\\X,!k6.HF8Z(V^^nBYea^NIL:]lG0(/\\Ik<m`>jPam;F-A,(tVN+bG@<L'J 1D8dE*hN87:TsccSKVE7KP+k8^5qZIkJG_fH_$MS--5(!*St/1:b+g8(/*",*T,*n=" $6I7H#v Jw {}; } } } } } ; } { } } ; { { } } } ; ; } ; } } ; } } } ; } } ; } { } ; } } ; ; } } ; { } { } ; } { ; { ; { } ; ; ; { { } } ; ; { } {} } } } { ; { ; } { } } } } ;} ; } } } } }} } } } {} :!#$%&*+./<=>?@\\^|-~ \n } { { } -- ;} ; ; } } ; { { } } } { } ; } \\'\" } { ; }{ } } } } ; } }} }} } : } } } } } { { ; of ; } { } } } } { } ; { { } } ;} } {} ; } } }} } ; }} { -> { { ; } ; } }} ; } } } }} } {} } ; } } }} }} }} { }} } } ; } { }} ; ; {} ; ; } ; } }; { } { ; ; } }} }} }} }} ;} } ; } { {} ; let ; in } ;} } ; } } {} ; case ; } } ;} } } {} { } { ;} } ; { {} { } { ; }} }} } } } ;} } ;} } } } } ; ; ; } {; {; {; } } } ; } } ; } { ; {; } } ; {; }; } }; }; }; ; }; ;; }; ; ; }; } } ;} : <= * + - / }; { } } {} } ; } { } } ; } data } ; }; ; } { {; { } ; ;; } } } }; } ; } ;} { } { } } } ; ; { } } { } } } {; ;} } } } { { ;; #define x \\";
|
||||
#include <stdio.h>
|
||||
typedef unsigned P;
|
||||
enum{ L=1<<26} ;
|
||||
|
||||
P I,C,K=24,M,E
|
||||
|
||||
,j[L]={ x},*D=j+L/2,*i=j+L-3;
|
||||
P w(P _){ return j[_[i]+1]; }
|
||||
#define X(f,b,y,d) void f(){ D=j+b[i]; *D=y; *++D=d; i+=b; }
|
||||
X(A,1,w(1),i[1])X(a,2,w(2),w(1))P l(P _,P E){ j[K++]=_; K++[j]=E; return K-2; }
|
||||
int S;
|
||||
X(t,1,9,(S=getchar())<0?8:l(l(17,l(1,S)),l(7,0)))P U(P _){ return j[w(_)+1]; }
|
||||
X(_,2,9,U(1)>U(2)?l(8,9):8)X(b,2,w(2),i[1])P G(P _,P S){ return l(w(_),w(S)); }
|
||||
#define B(f,o) X(f,2,1,U(1)o U(2))
|
||||
B(p,*)X(c,3,w(1),G(2,3))X(u,3,G(1,3),w(2))P N(P l,P L,P _){
|
||||
I=0;
|
||||
while(*T-I[v])I++;
|
||||
T++;
|
||||
return I/6?l:N(l+I/_*L,L*6/_,3-_);
|
||||
}
|
||||
X(s,3,G(2,3),w(1))X(m,4,G(4,1),w(2))B(o,-)X(f,3,G(1,3),G(2,3))P Z(){
|
||||
P _=*T++;
|
||||
return _-9?l(l(17,l(1,_)),Z()):8;
|
||||
}
|
||||
X(d,2,w(1),w(2))X(R,2,l(w(2),printf(E?"%c":"%u,",U(1))),l(23,9))P W(P _){
|
||||
if(S--); else{ M=0; C=5; while(C--)M=85*M+*y++-32; S=31; }
|
||||
I=_*2+!!(M&1<<S);
|
||||
for(_=0; (C=_[n]-9)&&C-I-23; _++);
|
||||
return C?_?--_<2?C=N(0,1,1),_?l(_,C):C?C<8?C+15:7[D-C]:Z():_:(_=W(0),l(_,W(0))):W(I);
|
||||
}
|
||||
B(g,/)B(r,+)X(e,2,9,w(1))X(O,2,w(2),l(w(1),M-8))int main(){
|
||||
v=12+n;
|
||||
if(E=*j,E){
|
||||
D=j+2;
|
||||
K=E;
|
||||
} else{
|
||||
T=v+7;
|
||||
while((*D=W(0)))D++;
|
||||
puts(T);
|
||||
}
|
||||
*i=l(l(l(*--D,l(7,0)),0),l(23,9));
|
||||
while(M=*i,M)M<24?(void(*[])()){
|
||||
|
||||
O,b,f,u,s,c,a,t,e,d,_,p,r,o,g,R,A,m
|
||||
|
||||
} [M*(M<18)](),7:(*--i=M[j]); return E||puts(y); }
|
||||
@@ -0,0 +1,73 @@
|
||||
|
||||
|
||||
#/*void*/include<math.h>
|
||||
#include/*#pragma _Atomic int*/<stdio.h>
|
||||
/* { */struct{ int o,s; } typedef V ;
|
||||
struct{ int x; V o,i,p; }typedef R; int
|
||||
d,w,a,i,b, u,g,n,j,F,h; R*Q,B [99],*E=B
|
||||
; V I(int s ){ V o={ d,s} ; d +=s; return
|
||||
#define O ; { } } if(! n --) { { { ; } }
|
||||
o; } float*p,ll=1,* q, *e,s,*r,*G,*W,y=1,
|
||||
# define _ V i ){ V o= I(i .s); * E++=( R) {
|
||||
*x,l,*z,m; V A(V p,_ 4,o ,p,i} ; return o; } V
|
||||
X,Y; double drand48(); V C (V i,V o){ *E++=(R)
|
||||
#define OO ){ P(Q->o,a=Q->i. o-n; b=Q->p .o-n\
|
||||
; r=b+W+n){ { n=Q->x O//struct volatile union {
|
||||
{ 3,o,i} ; return o; } unsigned char c[256],t[
|
||||
sizeof c+N]; V M(V p,_ 5,o,p,i} ; return o ; }
|
||||
struct{ float r ; short k ,p; char unsigned d[
|
||||
sizeof c]; } k={ LR} ; V S(_ 2,o,i} ; return o
|
||||
; } void Z(float*p,int n){ while(n--) *p++=0; }
|
||||
V L(int s,V i){ V o=I(s),p={ w,s+i.s*s } ; w+=p
|
||||
#define P(v,i)n=v.o; e=G+n; p=e+v.s; q= p+d; i\
|
||||
; while(--q,p-->e)// _Alignas _Imaginary _Bool;
|
||||
.s; *E++=(R){0,o,i,p}; return o; } V CM(V i){ V
|
||||
o=I(a=i.s),p={ w,a} ; w+=a; *E++=(R){ 7, o,i,
|
||||
p} ; return o; } void J(int c){ Z(e=G+X.o, X.s)
|
||||
; c[e]++ ; for(Q=B; Q<E; ++Q OO*p=*r++; n=Q ->i
|
||||
.s; while(n--)*p+=*r++*e[a+n]O*p=tanh(a[p]) O*p
|
||||
=1/(exp(-a[p])+1)O p[a+u]=*p O*p=p[a]+b[p]O* p=
|
||||
a[p]*p[b]O*p=a[p ]*Q->p.s+Q->p.o O*p=a[p]**r ++
|
||||
; } } } Z(G+d,d); P(Y,m=*e)m=fmax(m,*p); P(Y, s
|
||||
=0)s+=*q=exp((*p-m)/TP); P(Y, )*q/=s; } V T(_ 1
|
||||
,o,i}; return o; } int K(int K ){ J(K); P(Y,s =
|
||||
drand48( ))if((s-=*q)<0)break; return j=p-e; }
|
||||
V OG(int a,int b,_ 6,o,(V){ b,a} } ; return o;
|
||||
} void D(char unsigned*s){ float V[2*d]; int R
|
||||
=u; u=V-G; J(c[*s++ ]); n=c[*s]; l-=log(n[++q]
|
||||
--)/N; G+=u; p=d+G; if(1[s])D(s); else while(p
|
||||
-->G){ p[x-G]=*p; d[p]=0; } G-=u; Q=E; while(F
|
||||
<i&&Q-->B OO r++[w ]+=*q; n=Q->i .s; z=e+a +n;
|
||||
while(n--){ w[r ]+=*q**--z; d[z]+=*q**r++; } O
|
||||
a[q]+=*q*(1-*p**p)O q[a]+=*q*(1-*p)**p O*q+=q [
|
||||
a+u]O a[q]+=*q; q[b]+=*q O q[a]+=b[p]**q; b[q ]
|
||||
+=p[a ]**q O a[q ]+=Q->p.s**q O a[q ]+=*q**r; r
|
||||
++[w]+=*q**p; } } } u=R; } V MD( V x){ V BK; //
|
||||
return y; } int main(int Q,char**E){ FILE*f, *o
|
||||
=stdin; if(--Q){ o=fopen(2[E],"r"); f=fopen (1[
|
||||
E],"r"); while(w>-(n=getc(f))){ ++h; if(!n[ t])
|
||||
{ n[t]++; k.d[k.k]=n; n[c]=k .k++; } } } o &&f\
|
||||
read(&k,sizeof k,1,o); n=k.k; { V NW; X=x ; Y=
|
||||
y; } float R[d+d],B[4*w],q[d*2]; G=x=R; W =B; Z
|
||||
(W,4*w); p=W+w; while(p-->W)*p=2*drand48 ()*RS-
|
||||
RS; o&&fread(W,1,sizeof B,o); Z(G,d); h /=N; i=
|
||||
h*TR; h-=i; for(t[1+N]=m; Q; fclose(o) ){ rewi\
|
||||
nd(f ); while(fread(t,1 +N,1,f) ){ G= q; p=d+G;
|
||||
while(p-->G)*p=p[x-G]; D(t); ungetc (j=N[t],f)
|
||||
; if(F++<i){ a=w*3; b=a- w; p=W+w; while(p-->W
|
||||
){ m=fmax(-CL,fmin(CL,w[p ])); ll *=B1; p[a]=m+
|
||||
(a[p]-m)*B1; y*=B2; m*=m; b[p]= m+(p[b]-m)*B2;
|
||||
*p+=(a[p]/sqrt(p[b]/(1-y)+EP)/ (ll-1)+WD**p)*k.
|
||||
r; p[w]=0; } if(1>F%DI){ G=R ; z=SL+W; while(z
|
||||
-->B)putchar(k.d[K(j)]); } } if(1>F%DI ){ b=F;
|
||||
a=i; j=b>a; if(j){ b-=a; a= h; } printf(&j[//;
|
||||
"\n%c%d:%d%% %f\n"],j[ "TV"],k.p,100*b/a,l/b
|
||||
); } l*=F!=i; } /** */ char p[999]; if(LE
|
||||
<=++k .p)k.r*=LD; /*if*/ sprintf(p,PF,k.p
|
||||
,l/h); fwrite( &k,sizeof k, 1,o =fopen(p,
|
||||
"w")); F=l =0; fwrite(B,w,/** */sizeof*
|
||||
W,o); } while(putchar(k.d[K(j)]) ){ } }
|
||||
/* typedef volatile long double not ;
|
||||
register restrict unsigned volatile void
|
||||
_Complex struct bitand*/
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#define W 48
|
||||
#define b '\b'
|
||||
#define q R[2]==
|
||||
#define R __DATE__
|
||||
#define n 1073741824ul
|
||||
#define L (V) l[++S] << b * S
|
||||
#define D (R[7]-W)*1000+(R[b]-W)*100+(R[9]-W)*10+R[10]-W
|
||||
#define k q'p'?9:q'y'?5:q'n'?(R[1]=='u'?6:1):q'b'?2:q'r'?(*R=='M'?3:4):q'g'?8:q't'?10:q'v'?11:q'l'?7:12
|
||||
#define Z B |= (V) *l++ << u++ * b;
|
||||
#define g for(a=0;a<5;a++)
|
||||
#define o 25
|
||||
#define G a+
|
||||
|
||||
typedef unsigned long long V;V _=1ULL << 63; V d=1UL<<037; unsigned int x[
|
||||
n/16]; V m,F,u,T,a,r,H ,B,I; int main(int P, char *U[]){union{V K[o]; unsigned
|
||||
char E[1]; }c ; const unsigned char *f, *l ; V X,i,e,z,A,Q,M=-~9, Y; struct stat
|
||||
J; void *p; r++ ;V t,y= 0,v[5];const void*j[ ]= {&&laajavuori,&&ruka, &&puijo,&&lahti
|
||||
,&&vuokatti,&&virpiniemi, &&ounasvaara};V N[o]={r, P,6,M,15,21, 28,36,45, 55,2,14, 27,41,
|
||||
56,b,o,43, 62,18,39,61,20, 44};for(;U[r][a]; a++)T=T *M+U[!u][a]-W; T >>=P ; X=open(U[--P],F
|
||||
); V w[o]= {_|d|32776,d|r, _|32896,_| d |32897,_|d|M, 32778,_+128,_ |32770,_ | 32771,_ |32905,
|
||||
_ |139, d| 32907 , d|M,d| 32777,136,138,_|32777,_|d| 32897,d|1,32907,_|d|32768 ,_|32906,32898,
|
||||
r,_}; i= fstat (X,&J); V O [o ]={M,7,11,17,18,3,5,16,b ,21,24,4,15,23,19,13, 12,P, 20,14,22,9,6,r}
|
||||
; Y=H=J./*****/ st_size; p= mmap(/*TODO: FIX THIS */NULL ,H,r,r,X, u ); memset(&c,0, 200 ) ; z = b &
|
||||
7; r = T/11 [O]; l=p ; for(I=2; I<= Y; x[I++>>4]|=( 1<<(I&4[N])) ); goto C; ruka: for(I=b*3; I--;
|
||||
) { g v[ a ] =c .K[a]^c.K[G b-3]^ c.K[G M] ^ c.K[G 15]^ c.K[G M+M] ; g {t = v[(G 4) %5]^(v[(G 1)%
|
||||
5]<<1|v[(G 1 ) %5] >> '?') ; for(A =0; A< o; A+= 5)c.K[ G A]^=t;}t=c .K[ 1] ; for ( a =0; a-24; a ++)
|
||||
A =O[a],*v = c .K[A],c.K[A] =t<<N[a]|t>> (0100-N[a]),t=* v;for(A =!o; A^o; A += 5 ) {g v[a] = c.K[G
|
||||
A]; g c .K[G A] ^= ~v[( G 1) %5]&v[(G P) %5];}c.K[!1] ^= w[I]; } goto *j[Q];C:for( I=P; I <=Y/P;
|
||||
y=I*P) { while ( y <= Y ) x[y>>4]&=~(1 <<(y&O[12])), y +=I; do I++; while(~x[I>>4 ]&(1<<(I&15)));
|
||||
}if(H<z){ while (H-- ) Z goto $ ; } if (z){ H -= z; Q= P; while(z-- )Z c.K[F]^=B; B=u=i; if(o-r==
|
||||
++F){goto*j[!!b ]; puijo:F=!o; } }m=H /b; e=H - m*b ; for(; i<m; l+=b ){i++; V S=~ -!W; t=/*foob*/
|
||||
L|L|L|L|L|L|L|L ;c.K[F] ^= t; if(++F ==o-r) { Q=-~P; goto * j [ !0]; lahti: F=!r ; }}while (e--)Z
|
||||
$: c.K[F]^=(B ^ ((V) ((V)(P | 1 << P)<< u* b) )) ; Q^=Q; c.K[o-r-1 ]^=w[ ~ -o ]; goto*j[-~(P-P)]
|
||||
; laajavuori: f =c.E; _= d=I =~-P ; a = D; Q = k; goto*j[4+(23*Q/ 9+(Q>P?a-P:a --)+(R[4]==32?0
|
||||
:((R[4]-W)*M))+ R[5]-45+a /4+a /0620-a/0x64)% 3]; ounasvaara: for ( I = 2 ; I<= Y; I ++)
|
||||
if (x[I>>4]& (1 <<(15& I) ) ) printf( "%llu " , I);goto http; virpiniemi:for( I= !I; I-T
|
||||
; ){ char s[30] ={W,W,'\0'} ;X=!!W;for(e=f[ I++]; e^0; e>>= 4)P = e & 15, s[X--]= P <
|
||||
M ? W | P : P + 'W'; printf ( "%s" , s); } /* addr(ioccc) */ http://www.ioccc.org/
|
||||
return /******/ puts(""); /***/ vuokatti:for(;I ^'^';++I,printf("%llx "
|
||||
,_),t =_+d,_=d, d = t) ; goto http;/*m= o/i; v[a]=a+n;return 0;*/}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>/*
|
||||
e=nil;ARGF.each_char{|c|print c;e=e ?c<"A"||c>"Z":c=="\e"?1:!(sleep 0.1)};%q{*/
|
||||
#define T(_,S,C,R,A,M,B,L,E) _ V,i,o,l,e,t=1,n[4],I[22]={4352,95,4554,1,2902,4\
|
||||
46,2,29839,1841,11171,8541,511,785,9,23,63,145,96,128,6,61466,135167},g=240,H,\
|
||||
h,p,q,x,y;typedef struct{_ x,y,z;}b;b*U,u;FILE*f;A m(_ p,_ q){_ d=(p+q)/2;C(d-\
|
||||
p){m(p,d);m(d,q);S(i=p,o=d,y=H+p;y<H+q;y++)x=i>=d||(o<q&&U[i].y*1e6+U[i].x>U[o\
|
||||
].y*1e6+U[o].x)?o++:i++,B;S(y=p,x=H+p;y<q;x++,y++)B;}}A v(){S(i=l=0;i<22&&(o=l\
|
||||
+I[i++],l=o+I[i],e<o||e>l);i++);x+=2-i/22;}A a(){C(H+2>t)U=(b*)realloc(U,(t*=2\
|
||||
)*24);U[H].x=x;U[H].y=y;U[H++].z=e;p=p>y?y:p;q=q<y?y:q;v();}A P(_ p){n[o=0]=e=\
|
||||
p;C(p>>7){S(;p>63>>o;p>>=6)n[o++]=(p&63)|128;n[o]=(g*8>>o&g)|p;}S(;o>-1;)fputc\
|
||||
(n[o--],f);}A Q(_ O){O?fprintf(f,"\33[%d%c",abs(O),V+(O>0)):0;V^=2;}R d[2]="r"\
|
||||
;_ main(_ O,R**Z){f=stdin;C(--O&&(**++Z-45||1[*Z])&&--Z&&L)M;S(*d|=5;(e=fgetc(\
|
||||
f))>0;h=h<0?e-91?e<48||e>59?l*=(e&2)-1,e>64&&e<67?y+=l,0:e<69&&(x+=l)<0?x=0:0:\
|
||||
~(l=l*10+e-48):h:h?(e=l=l<<6|(e&63),!--h)?a(),h:h:(e&224)==192?l=e&31,1:(e&g)=\
|
||||
=224?l=e&15,2:(248&e)==g?l=e&7,3:e-27?e==10?y++,x=0:e-32?e==9?x=(x+8)&~7:e>32?\
|
||||
a(),h:h:x++,h:~(l=0))V+=(V+e)<<10,V^=V>>6;E;f=stdout;C(U){C(O<1){m(0,U[H].x=H)\
|
||||
;S(h=x=0,y=p;h<H;v()){S(;y<U[h].y;y++,x=0)P(10);S(;x<U[h].x;x++)P(32);S(;h<H&&\
|
||||
U[++h].y==y&&U[h].x==x;);P(U[h-1].z);}C(x)P(10);}else{srand(V);S(x=H;--x;B)y=r\
|
||||
and()%-~x;C(--O?L:O++)M;S(t=h=0,y=q+1;h<H&&t<O;E){C(t&&L)M;C(!t)S(h=q-p+2;--h;\
|
||||
)P(10);S(V=65;h<H*-~t/O;y=U[h++].y)Q(U[h].y-y),Q(x-U[h].x),P(U[h].z),x=U[h].x,v
|
||||
T(int,for,if,char,void,goto X,(u=U[x],U[x]=U[y],U[y]=u),((f=fopen(*++Z,d))?0:-(
|
||||
perror(*Z),1)),fclose(f))();Q(q-y);P(10);y=q+1;x=!++t;}}}O=0;X:return O;}/*}#*/
|
||||
Reference in new issue
Block a user