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,66 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#define M malloc(sizeof(
|
||||
#define R fread(x,sizeof(float),Z*w,f)
|
||||
#define E free(
|
||||
|
||||
char*G=
|
||||
" "
|
||||
" '"
|
||||
"@(*AP( "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" _"
|
||||
"0 #@ . \"C^*/XH\"Q2_U(D&(5*E0C 4B54DV X \"!9A@ 89H$ !"
|
||||
"0(/@@4 @(/@@( #@T @(\" @( P, , P# , #Y1244^ ?R 0#%)14,A#9)24$B 1"
|
||||
"_)!0,$Y145%R Y145$^&!81T! #9)24DV#Y)24DP ;&P -C4 $$B% @ !04%!04 @4(D$ #!(1"
|
||||
"4 @#U574$^'^0D)!_&Z1D9'_$*!@8%^'Z!@8'_(&1D9'_(\"0D)#_%Z1D8%^/\\0$!#_ \"!_X$ /X! 0"
|
||||
"$&(-$*!#_ $! 0'_/] ,$#_/\\&&&#_'Z!@8%^&\"0D)#_'V\"A8%^&>8D)#_$Z1D9%B(\" _X\" /X"
|
||||
"! 0'^/ , PSP/P#' /\\,<H$\"C', @'R# ,&AD8F'(&!_P ,,,, _X&!! @0\" 0 "
|
||||
"$! 0$! @0( \\5%14\" X1$0G_!$1$1$./\\2$1$. T5%14. \"0D'\\ 'Y)"
|
||||
"144X \\0$ C_ !7Q 7A$! $2# 3_ $!_H \\0'Q ? \\0"
|
||||
"$! ? X1$1$.#A$1\"1_'](1$0X @0$ @? (5%14)"
|
||||
" 1$?X0!\\\" 0$>!@& 088!X!#@$>"
|
||||
"!$*! H1#X)!04X!$9%1,1"
|
||||
"(&!;A 0 _P "
|
||||
" ! 0;H&!"
|
||||
" @$\""
|
||||
"! ("
|
||||
"\0"; int s,p,e,c,t,r,a,l; /* l e a k a g e */
|
||||
|
||||
int
|
||||
F(int o
|
||||
,int n, int t
|
||||
){char*p=(o*(136-o)
|
||||
>=1260)*7*(o-9)+G; for(
|
||||
n=!(o=-1); n=*p+++64*n-*G
|
||||
,(o+=3)>>2<5-t; ); return 255
|
||||
&n>>2*o%8; } float L[0x400];int
|
||||
T(float a,float b,float l,float*e)
|
||||
{return L[0x3ff]||!(e[1]=b*a+l**e)||
|
||||
!T(l*a-b**e,b,l,e+1); } float f(int x)
|
||||
{int w=s<<!!T(1,6.135885e-3,-1.882472e-5
|
||||
+1,L); x=(x%w+w)%w<<9; return(L[x/s]*(s-x%
|
||||
s)+L[x/s+1]*(x%s))/s; } int C(float*h,float*
|
||||
i,int r,int P){ int x,y,c; for(y=0; h<i; ++y,h
|
||||
+=r){ c=P<1; for(*h=x=0; x<8; c+=(1&P>>x&&P+(*
|
||||
h+=f(e*(l+a*(2*x+1))*y)*f(s/2-e*a*y+e*a*y*y*(t/p
|
||||
)/(s/p)))),++x); float z=f(y*t)*f(y*t); *h=z*(1+3*
|
||||
z+2*z*z)/6**h/c; } return h-i-r+1; } void d(int w,
|
||||
int n,FILE*f){int Z=s/t; int S[5]; float**P=M float*
|
||||
)*c);for(r=0;r<c;++r){ P[r]=M float)*Z); C(P[r],P[r]
|
||||
+Z,1,r); } float*x=M float)*Z*w); for (; ; ){ for(r=0;
|
||||
r<5 ; ++r){ int o=1; for(R,a=256; o&&--a; )for(o=t=0; t<Z; o+=
|
||||
P[a][ t]!=x[w*t+n],++t); S[r]=a; } if(R-Z*w)break; for(r=a=- 12;r<
|
||||
5&&(a+= a<11?22:1)<127; )for(r=-1; ++r<5&&F(a,1,r)==S[r]; );if(a <127&&r
|
||||
==5 )putchar( a); } for(; --c; E P[c])); E P); fclose(f);}int main(int q,char**v) {s=
|
||||
44100 ;p=25; e= 55;c=256; t=75; r=q>1?v[1][0]*c+v[1][1]:0; a=7;l=16;if(r ==11620){d (atoi
|
||||
(v[2]), atoi(v[3]), q<5?stdin:fopen(v[4],"r")); return 0; } char*H=malloc(c),* h=H; sprintf (H,"\0"
|
||||
"Usage\n" " %s [-" "h] [-d #c cid] file1 file2 ... (or stdin)"+(q-1&&r==11624 ),v[0]);if(* H)q=1;int
|
||||
w=2>q?1:q -1; FILE**f=M FILE*)*w); f[0]=stdin; if(q>1)for(r=0; r<w; f[r]=fopen(v[r +1],"r"),++r); int l=s/t
|
||||
*w; float *b=M float)*l ),*t=b+l; int*i=M int)*w); for(; ; ){ int x=*h&&1>ungetc(* H++,*f); for(r =w; r--;)
|
||||
{ i[r]=getc (f[r]); if(i[r]<0)i[r]=!++x; } if(x==w)break; while(++r<6){ while(C(b++,t,w,F(*i++,r< 5,r))); i-=
|
||||
w; fwrite(b-=w,sizeof(float),l,stdout); } fflush(stdout); } while(fclose(f[--w]),w); E f); E b); E i); E h);}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#include<stdio.h>
|
||||
int a = 256;int main(){for(char b[a+a+a],
|
||||
*c=b ,*d=b+ a ,*e=b+a+a,*f,*g=fgets(e,(b[
|
||||
a]=b [a+a] =a- a,a) , stdin);c[0]=a-a,f=c
|
||||
,c=d ,d=e ,e=f, f= g,g =g,g = fgets(e,a+a
|
||||
-a+ a -a+a -a+ a- +a,stdin ),f +a-a ; pu\
|
||||
tchar(+10)) { for( int h= 1,i=1,j, k=0 ,l
|
||||
=e[0]==32,m,n=0,o=c [ 0]== 32, p, q=0;d[q
|
||||
];p=(j=k,j)+(k=l,k*2)+(l=(i = i&&e [q] )
|
||||
&& e[q+1 ] ==32, l *4)+( m=n,m*8)+( n =o,
|
||||
16* n )+( o =(h =c[ q]&&h)&&c[q+1]==
|
||||
32,o* (16+16) )+0-0 +0, putchar(" ......"
|
||||
/*\ ( ||| ) |/|/ / */".')|)\\\\\\\\'"
|
||||
"" "|||" "|||" "|'" ")|)\\\\\\\\'/|/(/"
|
||||
"(/'/|/\\|\\|'/|/(/(/'/|/\\|\\|"[d[q++]==
|
||||
32?p:0]));}}/* typographic tributaries */
|
||||
@@ -0,0 +1,122 @@
|
||||
#include <math.h>
|
||||
#define e(a, d) for(a=0;a<d;a++)
|
||||
char*v="T{ ; ; :}>{ y} 4}; 1} s; {;9{ - $} ; q{; } u;d} } 3{d} ,{ 3; 1fB{A{ }{+ D}9} v{p{ pa} { N{${ ;P;{ z; ({ .{*}n{w{ v; j{$}<}S}y}@; { Q`{UN 9}0@{Z}'{ {%; h; 5} g} e S ~ q}'{#;e; B{;M} mP; b{y 7{ u;rOK}%} b}3 { k _{ { a{D{ W} L} q { '}A; AX;u}76*- h{O;p} } q}s}M} Q;; Y }D; H{ A ASRs}* n}P-{ {F}u; G; l{ D} ~; ,; } }8}{+Z O c; ;M{ A{Q} g} }} n U;k; |{ {<; /} H B}},} } L;"
|
||||
"_{ j}1{ z} = h{ S;1; 2;O; ; h{P; v; c{ H;;N;d;l}P} a; DBx}3{5 e A; {u} { FZ}8} ; ; 7;;{ $}~{ ~{q [ x;n#}; #{W{3; M ;; =;5; ;{} s}; *; v^} QB}n 9}} 1e <;}g{v} C{ :{a{ } o} R} .}}} , { 4 VX{s}r@{v 3} 7{{; y;{ {K; v 2O; t}&} ; L} t}3/; );e{(]f; ,}(}Nx;7}X} {A;R{;<;[; G;C} O; o}W}{ s; ); }{}[} (} C} ; Y{ 0}8} {m}{K}{ ^{. ;}';^;O }M{z; J,;{ };; "
|
||||
"W; n H; f; {-; v{}; { !} F- r l} {m } ;P} 9{p{ C}}G ={ 3 @{ 5}4{ | ; q ^;f} + -{-; } w{ ]{Q;.{ r{ Z { C 4{ +}o; y} b{[; Wg{N} o{ 9;;,{ P{z;+}>; a{}}p[{{{{b{b; @H{{s; {=}&}0; }} 8{N} {X; }I; 3} W{ 9;P{ {} } Hi}A { U{}D;};t;s; S;+; {O}nV} 7; x{f{ P} 4}B{ M ;Y} g};?{ ;{ t;5K ;* { H}w; SE n{D} I{&; {} =9 }B; W{4}p; l{Au; q{X~ +;O{ $j {G; ;'rb}3 j9} }`} m}4; r; 8; y;r}"
|
||||
"t}>; ~} E; G} 9} 5 ;/i}p{:; C{I} ; 2{ c{ x}}} ?}5{ i{ <} {})} C{ V} ?;X*;P{L{ c{M;T{<_{ {}M; V; q{ } $}l}P{Y{ #{N{9);]} u{ {F ;( ' )%J } x =; Y Q{Q}I'}B { } g}|{! n ({} C; # |; {=}D{3} }L{F}#} ` k} M; ]} J{ }7} 4} Z} ]}} v6 ; X; Y{Qx}{ ;};{ .<{b}7{ } 6 ; {x; & {]{~; [ P r}X} W 9 } {O{ ;f ;)}:;&{-; Eg{)}{0} Z{S}y; } N;; ; k}Y{`z;}? Kv} &; 6 1; ^ Y{ }{){A{${ #} M w; "
|
||||
"6{ >}B}o}; M{ ({ ({}H; ` h j{z; }; 7;f; { L; #{;{#} 4} N{z j}{ o;3{j;l B} 9} F} J;F 2 ;FTw+} y{ _ };l{ }} 4} 8} ]} l{ }K; ;@}{ v;b0; 0; }V; *} R; p;j; &;_;9; ; {J;W #} { h;^{t;|Q} [;U; >} ^} / ~{ @} {n k{ N} {H{ j} {W; X; 8{ 3; u:}T{P;0; k; Z} v{X} {;{`{#{ ;n} ;U} d}d{&{n {|t{ aT} v} $}7;Q; f; W; O} E;} c} F{ 8}AA; ~{ `; w; x<;G}f}7;rE{ ~{ n}F 5} ^{ c{; {!{|} "
|
||||
"1{[} ;3} ;{ 8 a}pIg;9{ n} -} T} e{ !} ; /0{9;V{>; W}F; +}L} F{S} +{ , } o; { x; i; 9 ";
|
||||
int w[3][16384],h[512],T[160],p,q=1,g=128;
|
||||
M(){
|
||||
int b;
|
||||
q*=1968;
|
||||
p*=1968;
|
||||
if(b=*v){
|
||||
p+=b-1-(b>10)-(b>13)-(b>34)-(b>92)<<4;
|
||||
b=v[1];
|
||||
v+=2;
|
||||
p+=b<33?(b^8)*2%5:(b^6)%3*4+(*v++^8)*2%5+4;
|
||||
}
|
||||
}
|
||||
r(A){
|
||||
int s,j,B,*m;
|
||||
if(q<1968)M();
|
||||
m=T+A*2;
|
||||
B=*m+m[1]+2;
|
||||
s=q*(*m+1)/B;
|
||||
if(j=p>=s){
|
||||
p-=s;
|
||||
q-=s;
|
||||
}
|
||||
else q=s;
|
||||
m[j]++;
|
||||
if(B>63){
|
||||
*m/=2;
|
||||
m[1]/=2;
|
||||
}
|
||||
return j;
|
||||
}
|
||||
C(A){
|
||||
int a,b;
|
||||
a=0;
|
||||
while(!r(A+a))a++;
|
||||
b=1;
|
||||
while(a--)b=b<<1|r(3);
|
||||
return b-1;
|
||||
}
|
||||
N(O,U,P,V,Q,d,R)int*O,*P;
|
||||
{
|
||||
int D,a,i,E;
|
||||
e(E,d)e(a,d){
|
||||
D=0;
|
||||
e(i,d)D+=P[i*V+E*Q]*(i>0?lrint(cos(acos(-1)/d*(a+0.5)*i)*1448.155):1024);
|
||||
O[a*U+E*Q]=D+(1<<R-1)>>R;
|
||||
}
|
||||
}
|
||||
S(x,k,l){
|
||||
int t,a,i,F,d,j,y,*n,c,z,o,G,f,u,H;
|
||||
if(l>2&&(l>4||r(0+l-3))){
|
||||
c=1<<--l;
|
||||
e(a,4)S(x+a%2*c,k+a/2*c,l);
|
||||
}
|
||||
else{
|
||||
c=1<<l;
|
||||
d=c*c;
|
||||
o=C(70);
|
||||
e(y,3){
|
||||
n=w[y]+k*g+x;
|
||||
z=y>0;
|
||||
e(a,d)h[a]=0;
|
||||
e(a,d){
|
||||
if(r(60+l*2+z))break;
|
||||
a+=C(4+z*10);
|
||||
j=1-2*r(2);
|
||||
h[a]=j*(C(24+(z+(a<d/8)*2)*10)+1)*(y?76:38);
|
||||
}
|
||||
if(!o){
|
||||
t=0;
|
||||
e(a,c){
|
||||
t+=k?n[-g+a]:0;
|
||||
t+=x?n[a*g-1]:0;
|
||||
}
|
||||
*h+=x&&k?t/2:t;
|
||||
}
|
||||
N(h+d,1,h,1,c,c,10);
|
||||
N(n,g,h+d,c,1,c,10+l);
|
||||
if(o){
|
||||
u=(G=o<17)?9-o:o-25;
|
||||
e(a,c)e(i,c){
|
||||
e(F,2){
|
||||
f=a*u+u;
|
||||
H=f&7;
|
||||
f=(f>>3)+i+F;
|
||||
if(j=f<0)f=(f*8+u/2)/u-2;
|
||||
f=f<c?f:c-1;
|
||||
h[F]=j^G?n[f*g-1]:n[-g+f];
|
||||
}
|
||||
n[G?i*g+a:a*g+i]+=(*h*(8-H)+h[1]*H+4)>>3;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
I(b){
|
||||
putchar(b<0?0:b>255?255:b);
|
||||
}
|
||||
main(){
|
||||
int a,k,J,K,L;
|
||||
M();
|
||||
S(0,0,7);
|
||||
puts("P6\n128 128\n255");
|
||||
e(a,g*g){
|
||||
k=w[0][a];
|
||||
J=w[1][a];
|
||||
K=w[2][a];
|
||||
L=k-J;
|
||||
I(L+K);
|
||||
I(k+J);
|
||||
I(L-K);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
char O,o[];main(l){for(;~l;O||puts(o))O=(O[o]=~(l=getchar())?4<(4^l>>5)?l:46:0)?-~O&printf("%02x ",l)*5:!O;}
|
||||
@@ -0,0 +1,67 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#include<unistd.h>
|
||||
typedef unsigned char*_;
|
||||
_ s,i,z,e,O,F=
|
||||
#include W
|
||||
|
||||
"; ; } { { { { { } { { } ; } { ; ; { } ; { { } ; } ; { { { { } { { } \
|
||||
; } { { { { { } { ; } { } { { } { { } { { { ; ; { { } { { } { ; } { \
|
||||
} { { { { { } ; } { } { { } { { { \
|
||||
} { ; } { } { { { { { } ; } { } { \
|
||||
{ { } { { } ; ; { ; ; { { } { { } \
|
||||
{ ; } { } { { { } { } { { { ; { { \
|
||||
{ } { { } { { { { } { { { { { } ; \
|
||||
; { ; ; { { { { { } { ; } { } { { { { { } ; ; { ; ; { { ; { ; { { { \
|
||||
} { } { { { ; { ; { { { ; ; { } { { { } { ; } { } { { { { { } { { { \
|
||||
; ; { { } { ; { { { } { } { { { ; { ; { { { ; ; { { { { { } { { { { \
|
||||
\
|
||||
} { { { { { } ; } { } { { { { { { } { { { { } ; } ; { { { } \
|
||||
{ { { { { } { { } { { { } { { ; { { } { ; { { { { ; { { ; { \
|
||||
{ { { { } } { { ; { } { { { ; ; { \
|
||||
{ ; { ; { } { } ; { } { } ; { ; } { { { } { ; { } \
|
||||
{ ; { { { } { ; } } { ; ; { { } { ; ; } { ; ; ; { \
|
||||
} } { { } } { ; { { } } { } } } { \
|
||||
; } { } } { ; } } { ; ; { } } } { \
|
||||
{ { { { { } } } ; ; { } { ; ; } { ; } ; } { } { } } } { } { } { } \
|
||||
{ ; } { ; ; { } { } } { } { ; } } } { } } } } } } ; } } } } ; { } \
|
||||
{ } ; } } } } ; } } } ; { { } } } ; ; } } { { } } } ; { { " ; ; ; ;
|
||||
unsigned v,o,l,A,T,I,L,E,c,H,a,C,K,R,Z=256; char n,M[2053]; int*q; int h(_ F,int l) { for(;
|
||||
l--&&*F; putchar(*F++)); return 0; } int r(int I,int O){ return!fprintf(O&2?stderr:stdout
|
||||
,"%d%c",I,O&1?l:32); } int m(char O){ for(a=0; a-O&&z<e; L+=((a=*z++)==92?*z==a||*
|
||||
z==39||*z==
|
||||
34||*z==l?*
|
||||
z++:a:a)==l); return a; } int d(_ e,int l){ _ F=M+Z+q[l]; _ O=M+Z+q[n=-~l]; for(
|
||||
; l<*q&&n-l&&F<O; F+=l)for(n=0; n<l&&e[n]==F[n]; ++n); return l&&n==l?T +=--l,++K:0; }
|
||||
int j(){ for(c=0,o=Z,O=z; z<=e&&M[c=*z++]&16; ++C,L+=c==l); for(s=z-1; z>=e; )return C-=
|
||||
!c,c; for(a=M[c]; v&32&&c==35; )return m(l),o+2; for(; a&8; ){ for( ++o; M[c] &12; c=*z++);
|
||||
return d(s,--z-s)?o:++o; } for(; a&4; ){ for(c=c==48&&(*z|32)==120? *++z:c; M[c]&6; c=*z++)
|
||||
; return o+(c==46?strtod(s,(char**)&z),5:!--z^4); } for(; c==47&& (*z==c||*z==42); ){ for(;
|
||||
c==*z++; )return m(l),o; for(m(42); z<e &&*z++-47; --z, m(42)); return o; }
|
||||
return c==39||c==34?m(c),c:*z++==61&& a&64?c|128: a&128&&z[~0]==c?*z==61
|
||||
&&a&32&&c-45?++z,c|o|128:c|o:a&/* 2052 */32&&z[~0]==62?o+6:*--z?c:32; }
|
||||
void g(int l,int O){ for(c=0; c<l; ++c)(a=M[s[c]]&16)?--I:M[s
|
||||
[c]]&1&&M[s[c+1]]&16?--I:0, O=O ?!a:! a?++A:O; } void f(int T
|
||||
,int F){ int n; _ o=O; for (c= v&2; H==Z; L-=!(v&2 ||o[~0]
|
||||
-l),C-=o-O)for(H=0; o<s&& *o++ -l; ); O-=O==s &&O[~0]==l;
|
||||
T-=T==34||T==39? g(F,1), 0:Z ; a=O==s&&s>i; for(A-=T&&
|
||||
a&&M[O[-1]]-16,!(v&8)&& (T| c)?h(O,s-O), h(s,F):T; !T
|
||||
++; H=Z+s[1]-42){ for( n=a ; c; c^=c)for(I+=F,g(F,n
|
||||
),n=c=2; c<F&&s[1]==47 ; ++ c)a? (a=M[s[c]]&8)||d(s+
|
||||
n,c-n)&&(I-=c-++n):M[s [c] ]&8?a= n=c:a; for(c=v&2;
|
||||
!c;A+=!a&&M[s[F]]-16&& s[1]-47)for(c=0; c<F; ++
|
||||
c)L-=s[c]==l; for(o=s; o>O &&*--o-l; ); C-=*o==
|
||||
l||o==i||O[~0]==l?s-o- (*o==l):0; } } int b(int
|
||||
l){ for(a=0; l--; a+=c- 59?c==125:-~1) for(a+=a+
|
||||
a; (c=* F++)== 32||c==9; ); return a; } int main (
|
||||
int S,char**H){ for(s=e= M+Z,q= (int*)s,e+=Z/2; *F-
|
||||
59; *e++=*F++)for(; *F==32 ; ++F,q[++*q]=e-s); for(q[++
|
||||
*q]=e-s,z=M,v=b(3); v--; )for (z+= b(3),o= b(3),c=b(5); o--;
|
||||
*z++=c); for(*++e=l=10,O=s=M+4* Z,v=b (3); v--; O[o]=b(5))o=b(5)
|
||||
; for(O+=32,v=0; ~(a=getopt(S,H,O) ); )for(v|=s[a&31]; !(a ^~-Z >>2); )
|
||||
return h(U,~0); for(O+=32,a=0,o=2; c= getchar(),o<a|| (i=realloc(i ,a+=Z)),~c;
|
||||
i[o]=c,c==l+3?v&1&&++E: c==l&&i[~-o]==92 ?--o,++L,v&1?E+=2,++A:A:++o)O ??(c??)&&!(i??(??--o
|
||||
??)&i??(o-2??)??'63)?o-=2,E+=2,c=O??(c??):0; for(F=e,e=i+o,z=i+=2,*e=0; o=j(); v&1?f(o,a):v
|
||||
&8?v:v&2||o-Z?~v&32&&r(o,0),h(s,a),z[-1]-l&&h(F,1):0)a=z-s,o-Z?C+=a,++A,I+=v&4&&o==-~Z?1:M[
|
||||
o]==1&&(M[*z]==16||!*z)?0:a:a; a=e-O; a&&v&1?f(0,a),v&8||h(O,a):a; v&2?C=e-i:0; T*=v>>2&1;R
|
||||
=C-I-T; C+=E; return v&32?0:v&16?r(I,1):r(L,2)+r(A,2)+r(C,2)+r(I,2)+r(R,2)+r(K,2)+r(T,3); }
|
||||
@@ -0,0 +1,126 @@
|
||||
#include<unistd.h>
|
||||
#define W ),write(1,
|
||||
static unsigned char c[]=
|
||||
"]\33[0m\33[7m[&&'% $ # ! ########## \" !& \n oo 6''GLB=.* eoj* 5SXINE@199999999777777775]bNNE@@5]bNNE@E5SXOO0?05SXOOD?06TYJOE@16Y%JOE@16^c%O%%%6c%%O%%%f !! k k! p !oo :;;\37;;;;;\37;($\"%$##(\37(/1$1.,,,$%&/1rs!58&30123$$-O@2=\2?(2-'VZ$3:'i/3+ O#&B2%1,: 2=' (1J!1AC) @:,+_M1H/:J I\"?.Ak'.c2G$gj!j.@O&'(P +,jk/Y1$3%56.8 Y1. .4, W +nd\\rs1( ++(-.331i\".>.-[!.^'.\00281\216\217\252\253's 6\b.$\252\2534''0(\0226 6!'# +[\34.-\"+,-\"(4123Z5_]3-+46(44ij3.jneij41$3+%16s c` 3!#6.(n _\".] R+'4.jjkf`'\\..Y.(' i1 f%nG. $=i$#$ `'3V*+.b2&.!23+5.'n9\\\2ij&1j_3k^_n/+i_ij cd-$$11j(%3&'..\n!1$.4 623$ \2$' rs6${$\"\25($3-5.3''' $2.'\b(1( -.\0253,63''6 8\241+ 6\37 $-$I(P(($\252\253cZ/2\b'i4j3$86&4 j!k-J &1N]'+,fcY-ej/$fgl8 n4!$cd (^'$4+bc-g -2($.iZn$%Yc\20 4+Z,)$.'.\0071 1.'g1\37 4-$$%1'(D=+,-./+12 4,,7\f$ 1:3'+,?.='= #.%$)K!(123&(J3:4$J4 $52#(<! ,$AK;( !+# ./'1 \17 1\252\253<=>?@ABCDEFGHIJKLMNOPQRSTU ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; { { ; ; ; { ; ; { { ; ; { { { { { ; ; ; { { { { ; { { ; { { ; { { ; ; { { { ; { { { ; ; { { { ; ; { { { { { { { { { } ; { { { ; } } { { } } { { { { { } } { } } } } ; } } } { ; } } ; } } } } } } } ; } } } } } } } } } { } ; ; } } } }; ; ; } } { }; } }; ; ; ; ; ; ; ; ; ; ;; ; }; ; ; } ;; ; ; ; ; ; ; ; ; ;; ; ; ; ; {; ; ; ; ; ; } ; } ; ;;; } ; ; ; ; ;;; ; } };; } ; ;;; ;; ;;;; ;;; ;;;; ;; { ;;; ; ;; ; ; ; ;;; ; ;;; ;;;;;;;;; ;;;;;; ; ;; ;; ;; ;; ; ;; ;; ;; ;{ ;;;{ ;{ ;; ;{;;;; ;;;; {;{;; ;;;{ ;;; ;{ ;{ ; { { { { { { { } } ; ; ;; ;; ;{ \" ' !!!!$!!(8I!!,%&!!!#*)2. C!!CH'-/0@B+ L UJM< N4 [Q?DX[ Jc !ad' in fit` !w !V mL r L p z s Vv e x _ vb !VY o\\q j (x [|!E\"&@+10y?UJ W$ 6 [OPUDXAF]US Zj lac[q $n We y |) #w zk)Us |$ `Ub,5 )F8V_h;#4\"u% 0 $<CJUIJG $X < @67$X)Z$ | YUC])ZZ h dO m s<Ky < ^wUW x#${ oU@r Z 2 Ufg<$T| njv U+/[u(>1C$ \" . I4 U $+ Al 6M3UQ 8Uv+kV5 U;pBKU`P)jX Xe Cw }\" ++{UyZo$lC}*C,& .#C>'+ 52|4/B)7+ +|@1--9M6 L ||Q =P R ? )GH\\Vk[ [ f ICfB [[[!r 6 b$! UI!z[p |sC$)x[ U$IU[e+B XU >zU 0U-?$O @Yx:) 4EZCU/lUAco 'q.*9[}G_HLBI j(! m!!t , l x!q!|! ! !!!!! ! q$ ( $U! < c 'do nN)\"S w4k} = 0 A Y1+-9 =Scaf !OZ B F "
|
||||
|
||||
,C[3^9
|
||||
<<20],*k[
|
||||
4]={
|
||||
1+C,
|
||||
0,59
|
||||
+c}
|
||||
,**K
|
||||
,*l,*L,*
|
||||
o,O,p,
|
||||
|
||||
P,s,S=1,v=4 ;
|
||||
int V(int w){
|
||||
return
|
||||
1<w
|
||||
?3<
|
||||
w?4
|
||||
<w?
|
||||
5<w
|
||||
?6<
|
||||
|
||||
w?O=(O=*
|
||||
--l,O/64-
|
||||
1?1 &129
|
||||
>>O -39
|
||||
:27>(O%=
|
||||
32)&&0<O
|
||||
?1+ O:0
|
||||
),w +=O
|
||||
,O- (c[
|
||||
|
||||
|
||||
w]- 2)%
|
||||
28|| (1-
|
||||
(O= (c[
|
||||
w]- 2)/
|
||||
28) ?v=
|
||||
O:0 ,V(
|
||||
154+ 1950
|
||||
[w+c]+94*
|
||||
(464[w+
|
||||
|
||||
c+w ]/3
|
||||
%5+ 465
|
||||
[w+c +w]
|
||||
%26/7 )))
|
||||
:!( 3- v?2
|
||||
>v? L=1[k
|
||||
]=* k,3[
|
||||
k]= 67+
|
||||
c:3 >v?
|
||||
|
||||
V(0 ),p
|
||||
?(0 W L,
|
||||
*k- L W
|
||||
52+ c,
|
||||
1),p=
|
||||
0:0 ,L
|
||||
:L: (v=
|
||||
1,l =*k
|
||||
,V( 205
|
||||
|
||||
|
||||
),1-v
|
||||
?2 [k]
|
||||
=75 +c:
|
||||
o,V(
|
||||
3), v%3 ?2>
|
||||
v?V (1), o=
|
||||
1[k ]:L:(
|
||||
p=(P=1 W L,o
|
||||
-L W c +s,S
|
||||
|
||||
W o ,*k
|
||||
- o W c
|
||||
,S) ,L=
|
||||
*k) , 1[k
|
||||
]=* k )):
|
||||
(l= *k, V (
|
||||
808 ),v ):(
|
||||
v=* ++*k
|
||||
,39 -c[
|
||||
|
||||
v>> 7 ?
|
||||
15: 1-v
|
||||
/32 ?10
|
||||
-v?(312-v %
|
||||
32)/26+v/32
|
||||
*2: 13:
|
||||
82- v])
|
||||
:!( w[k
|
||||
]+= V(2
|
||||
|
||||
+w)
|
||||
,v=
|
||||
*w[
|
||||
k]%
|
||||
5,w
|
||||
[k]
|
||||
=*w
|
||||
[k]
|
||||
/5*
|
||||
|
||||
8+3+c):(K=k+w
|
||||
,33>*(*K-=!w)
|
||||
?*K
|
||||
+=w
|
||||
,V(
|
||||
w):
|
||||
!(*
|
||||
K+=
|
||||
!w)
|
||||
|
||||
);}int main()
|
||||
{ read(s,2+C,
|
||||
9<<
|
||||
20)
|
||||
;s=isatty(S)
|
||||
?S=
|
||||
5:9;
|
||||
for(;v;V(2))V
|
||||
(6);return P;}
|
||||
@@ -0,0 +1,27 @@
|
||||
#define/*__Int3rn^ti[]n/l_()I3fusc^t3|]_C_C<>I7E_C[]nt3st__*/L/*__MMXVIII__*/for
|
||||
#include/*!"'()*+,-./12357:;<=>?CEFGHIJKLMNSTUVWXYZ[]^_`cfhijklmnrstuvwxyz{|}*/<stdio.h>
|
||||
char*r,F[1<<21]="~T/}3(|+G{>/zUhy;Jx+5wG<v>>u55t.?sIZrC]n.;m+:l+Hk]WjNJi/Sh+2f1>c2H`)(_2(^L\
|
||||
-]=([1/Z<2Y7/X12W:.VFFU1,T77S+;N?;M/>L..K1+JCCI<<H:(G*5F--E11C=5?.(>+(=3)Z-;*(:*.Y/5(-=)2*-U,\
|
||||
/+-?5'(,+++***''EE>T,215IEUF:N`2`:?GK;+^`+?>)5?>U>_)5GxG).2K.2};}_235(]:5,S7E1(vTSS,-SSTvU(<-HG\
|
||||
-2E2/2L2/EE->E:?EE,2XMMMM1Hy`)5rHK;+.T+?[n2/_2{LKN2/_|cK2+.2`;}:?{KL57?|cK:2{NrHKtMMMK2nrH;rH[n"
|
||||
"CkM_E21-E,-1->E(_:mSE/LhLE/mm:2Ul;2M>,2KW-+.-u).5Lm?fM`2`2nZXjj?[n<YcK?2}yC}H[^7N7LX^7N7UN</:-\
|
||||
ZWXI<^I2K?>T+?KH~-?f<;G_x2;;2XT7LXIuuVF2X(G(GVV-:-:KjJ]HKLyN7UjJ3.WXjNI2KN<l|cKt2~[IsHfI2w{[<VV"
|
||||
"GIfZG>x#&#&&$#$;ZXIc###$&$$#>7[LMv{&&&&#&##L,l2TY.&$#$#&&$,(iiii,#&&&#$#$?TY2.$#$1(x###;2EE[t,\
|
||||
SSEz.SW-k,T&&jC?E-.$## &#&57+$$# &&&W1-&$$7W -J$#$kEN&#& $##C^+$##W,h###n/+L2YE"
|
||||
"2nJk/H;YNs#$[,:TU(#$ ,: &&~H>&# Y; &&G_x ,mT&$YE-#& 5G $#VVF$#&zNs$$&Ej]HELy\
|
||||
CN/U^Jk71<(#&:G7E+^&# l|?1 $$Y.2$$ 7lzs WzZw>&$E -<V-wE(2$$ G>x; 2zsW/$$#HKt&$$v>+t1(>"
|
||||
"7>S7S,;TT,&$;S7S>7&#>E_::U $$'",op ,*G= F,*I=957+F ;int*t,k,O, i, j,T[+060<<+020];int M(
|
||||
int m,int nop){;;;return+ m%(0+nop );;} int*tOo,w, h,z,W;void(C) (int n){n=putchar(n);}int
|
||||
f,c,H=11,Y=64<<2,Z,pq,X ;void(E/*d */)( int/*RP*/n ){L(Z=k+00; Z; Z/=+2+000)G[000]=*G*!!f
|
||||
|M(n,2)<<f,pq=2,f=+06 <f?++pq,++pq ,G++ ,z:f+001,n /=2;;}void (V)( int/*opqrstabd*/n){C(n
|
||||
%Y);;C(n/Y+00);;}void J(){L(pq--,pq =j =O=-1+0;++ j<240;I[6+ (h +6+j/12/2*2+M(j/2,2))*
|
||||
W+M(j/2/2,+06)*2+w*014 +00+M(00+ 000+j,002 +00)]=000 +00+k)k=M(G[j/2/2+(*r-+
|
||||
32)**"<nopqabdeg"],/*4649&96#*/3);/*&oaogoqo*/;}/*xD%P$Q#Rq*/int/*dbqpdbqpxyzzyboo3570OQ*/main()
|
||||
{L(X=Y-1;i<21*3;i++,I++)L(r=G,G+=2;*G++;)*G>=13*3?*G-*r?*I++=*G:(*I++=r[1],*I++=r[2]):1;L(j=12,r
|
||||
=I;(*I=i=getchar())>-1;I++)i-7-3?I-=i<32||127<=i,j+=12:(H+=17+3,W=W<j?j:W,j=12);L(;*r>-1;r++)*r-
|
||||
7-3?J(),w++:(w=z,h+=17+3);C(71);C(73);V('*'*'1'*7);C(57);C(32*3+1);V(W);V(H);C(122*2);L(V(i=z);i
|
||||
<32*3;)C(i++/3*X/31);C(33);C(X);C(11);L(G="SJYXHFUJ735";*G;)C(*G++-5);C(3);V(1);L(V(j=z);j<21*3;
|
||||
j++){k=257;V(63777);V(k<<2);V(M(j,32)?11:511);V(z);C(22*2);V(i=f=z);V(z);V(W);V(H);V(1<<11);r=
|
||||
G=I+W*H;L(t=T;i<1<<21;i++)T[i]=i<Y?i:-1;E(Y);L(i=-1;++i<W*H;t=T+Z*Y+Y)c=I[i]?I[i]*31-31:(31<
|
||||
j?j-31:31-j),Z=c[t[c]<z?E(Z),k<(1<<12)-2?t[c]=++k,T:T:t];E(Z);E(257);L(G++;k=G-r>X?X:G-r
|
||||
,C(k),k;)L(;k--;C(*r++/*---#$%&04689@ABDOPQRabdegopq---*/));}C(53+7);return(z);}
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
#define/**/Q( q)int*P,t,u,M [99999], *S=3557\
|
||||
+M,*C=M+3800; char*Q=#q;int (main) (){q;}
|
||||
# include <stdio.h> /*IOC CCC*/
|
||||
Q(for(;* Q>34?(*S ++=*Q ++):*
|
||||
(Q+= *Q- 27?1:Q[2 ]/49+ 4);); for ( S=M+9 ;*C;u =t%9,t <18?*
|
||||
++S=t<0? *C++%92* 57-t-500:t<9?M[u]:M [u]++:t<27?M[u ]=*S--:u?t=* S--,u<2?M[t]=*S--:u< 3?C+=*S--?t:0,
|
||||
0:u-6?*S =u<4?*S- t:u/*ABCDEFGH*/<5?* S%t:*S<t:putchar (t):(*S=M[*S]))t =*C++-93;return+0**" Ler[Tsaxiyj.V}<\
|
||||
dzSGs`Fk {YezYTtb x0d{iy kNT}?d zaxiyjE K}TdzHe iy`Me{ Tf|)dz HeiyH eiyjxiyax Ldz2sx Ke{'d\
|
||||
|Yd{2sy? [saY^{tG erjxuj xvbqax` {)dzc kydj/ dzjxkya_}JdziHf}Ydz -Vw2d rQ)qJe_y h@*}<d zHeh\
|
||||
yAehy)*n x{qnxKe{ Df|Qd{ uc)e{& dzZfh yCehy 6fuchyex;e{ZdzIe_yn q1dqD +u/dcyl5 L}<dzL IETi\
|
||||
{x=b{1g|{uc2d{byaxvcDfd }&dzDVd {x6ecOe z1dcydCf_{{)d|qSf2 T_{x$c{ ;g|{{u Ffjx}4czb q_xucx/d }Jez0dly\
|
||||
c/d{hycSf{hychycFc{ hy_)Ic}{q _0d{qb_}.c z:eo:T`{xp]q1d`{D` zD+ulxcx{-dzcCez 7evOe~Hf~0dcx}/dzd~cx x~6f~m6e0dcx}{}Ud\
|
||||
zc(*{x~c0d{Tf |.dz'd~c5 L}Ecz1d[Ty /*0+)IFMNFU*+0- 02;>@=,(#155 5546231rst%wvu#08OCC C*/#include/*#"
|
||||
|
||||
|
||||
|
||||
"exclude*/<stdio. h>#def\
|
||||
ine/**/Q(q)int*P,t,u,M[ 99999],\
|
||||
*S=3557+M,*C=M+3800;cha r*Q=#\
|
||||
q;int(ma in)(){q;} Q(@@~c\
|
||||
d`c/C@~o `rrdc~n m/GSghr~o`qqns~hr~\
|
||||
mn~lnqd/ FH~g`ud~ bd`rdc~sn~a d/O@~dw ohqdc~`mc~fnmd~sn~ ldds~lx~l`jdq/GSgh r~hr~`~k`sd ~o`qqns/LAdqdes~ne\
|
||||
~khed+~H~qdrs~hm~od`bd /KH&c~ad~otrghmf~to~s gd~c`hrhdr/X@~qtm~cn vm~sgd~btqs`hm~`mc~i nhmdc~sgd~bgnhq~ hmuhr\
|
||||
hakd/FSghr~hr~`m~dw, o`qqns /6Zba4ORRZ T`]Sa` fdgO2bPV[ Ta5dT[ MVfbZZHY b79bVT^ :L;S<J= X>Q?X\
|
||||
@SAZBWCIDNEQF`GXPU UgW^a a[bIaZ[Z afaf_` Kg`ZYY[ [`gff^ Jg``8OK KT,VNa6 /TZSW` 0cRMWO 3\
|
||||
3f][T`-[K aV,[Z /6aPWLab f[P[a3 f`0dPR `3M3]8/ R[Z-Z, VZR#MR TfNTT\
|
||||
4d5^$S]8 RMKRVa MM8T$9aaZ gaRSg1 NZ1`5^ d`LK]. %&VZ,' R#gKaZ f1T\
|
||||
T10aa`b].TZ- KK/28`-6VKf'ZH^P(./Ka8 a)8[O6NaTb f*[Hd+Z(V 8&3K%)VNTR#&WbX[ H^dcOWOf]8[OR[aT\
|
||||
OM2V'$9aLR[RW* `0+OMW[([14ZLaK%).NO6 RMRS*[0+ZO WZS]_<<<< <htt"/*pa*/"p: //"/*x@*/"cult\
|
||||
ofthepartypa rrot.co m/>>>> >__<-_So urce_of_P arrots __(")
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#include<string.h>
|
||||
#include<ctype.h>
|
||||
#include<time.h>
|
||||
#include<stdint.h>
|
||||
Q unsigned d; Q char E; Q int k;
|
||||
Q long u; Q size_t t; Q const char U;
|
||||
#define L toupper
|
||||
#define M SIZE_MAX-1
|
||||
#ifndef S
|
||||
#define S 38
|
||||
#elif S < 38
|
||||
#undef S
|
||||
#define S 38
|
||||
#elif S > M
|
||||
#undef S
|
||||
#define S M
|
||||
#endif
|
||||
#define l S-1
|
||||
#define Y strlen
|
||||
#define Z printf
|
||||
#define K static
|
||||
#define z do{
|
||||
K E W[]="stqvvwxzwtzuvvryusuxvtrqsruxttrxvwqxq"; K E T[S]= {77,69,84,72,73,78,75,83,32,73,84,32,73,83,32,76,73,75,69,32,65,32,87,69,65,83,69,76,0} ;
|
||||
K U C[] =" !\"#$<%:>&'()*+,-./0123456789;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`{|}~";
|
||||
/*NO*/
|
||||
K E P[2][sizeof(T)]; K t G=0;
|
||||
#ifndef N
|
||||
#define N 25
|
||||
#elif N < 4
|
||||
#undef N
|
||||
#define N 3
|
||||
#elif N > M
|
||||
#undef N
|
||||
#define N M
|
||||
#endif
|
||||
/*BLOB*/
|
||||
K u R=1; K d D=0; K k X(k f,k t){ return (rand()%((t)-(f)+1)+(f)); }
|
||||
K E c() {return C[X(0,(k)Y(C)-1)];%> Q struct x { E G[sizeof T];
|
||||
t F; } x; K x O[N];
|
||||
/* Special C main() handler (encapsulation): */
|
||||
#define r(main) main
|
||||
r(k main(k a, E **V)) { x x; E*b;
|
||||
U *A=T; k h=0,s,q=0,m=0,y=0,n=N==97,J=0; t i,j,
|
||||
|
||||
/* prototype for special C parser H() below */
|
||||
F H(); H(<% H(for (s = 1; s < a && *V[s++]; ) H(<%
|
||||
H(E *v=V[s-1]; H(if (*v!='-'||h) H(g(o) w(f) H(
|
||||
while (*++v) H(switch (*v) { w(case '-') h=1; g(f)
|
||||
w(case 'r') H(if ((R=strtol(v+1,&b,0)) < 1 || R > 100)/*CODING*/
|
||||
<% Z("mutation rate out of range\n") ; m=1); %> else m=0; g(f)
|
||||
w(case 'q') q=1; Z("quiet output\n") ; g(f) w(case 'm') J=1;
|
||||
g(f) w(default) g(f) %>); H(continue))); H(w(o) H(y=1;
|
||||
H(i = Y(V<:s-1]); H(if(i > l) i=l; H( strncpy(T,V[s-1:>,i)
|
||||
; H(T[i]='\0')))))))); })); }); H(H(if (n&&!y) for (j=0
|
||||
; j<37; ++j) T[j]=W[j]-'A'); H(for ( ; *A && strchr(C, L(*A))
|
||||
; ++A)); H(if (*A) <% Z("'%c' not in keyboard \"%s\"\n", *A,C)
|
||||
; return 0; })/*THIS*/); H(srand((d)time(0)); memset(&x, 0, sizeof x);
|
||||
memset(O,0,sizeof O)); H(Z(/*IS*/"target '%s'\n", T); H(Z(
|
||||
"mutation rate %ld\n", R)); H(if((m=(m||J||N<4)))
|
||||
Z("monkey at typewriter\n"); H(for ( j=0; j<N; ++j) H(for
|
||||
(i=0; i<Y(T); ++i) O[j].G[i]=c())))); H(while (!D) { H(if (++
|
||||
|
||||
G==M) {Z("Too many attempts, blaming the monkey Eric even if "
|
||||
"he isn't typing or doesn't exist. Bye.\n"); return 1; } H(for
|
||||
(j=0; j<N&&!D; ++j) { F = 0;/*NOT*/ H(for (i =0; i < Y(T); ++i)) { H(
|
||||
if (L(O[j].G[i]) == L(T[i]))) ++F; } /*A*/ O[j].F=F; H(if (((D=(F==Y(T)))
|
||||
||G==1)&&(!q||D)) Z("Generation %4zu\tOffspring %2zu: %s\n",G
|
||||
-1,j+1,O[j] .G); })); H(if (D)break;); s=0; /*COMPACT*/ H(if (m) g(p) else H(z
|
||||
s=1; H(for(i=0; i<N-1; ++i) { H(if (O<:i].F >= O[i+1].F) g(h)) x=O[
|
||||
i+1:>; O[i]=O[i+1]; O[i+1]=x; s=0; w(h); }); }while(!s))); w(p
|
||||
) H(strcpy(P[0],O[0].G); strcpy(P[1],O[1].G)); H(for (j=0; j<N; ++j)
|
||||
{ H(for (i=0;!m&&i<Y(T); ++i) H(if ( X(0,9)<5) O[j] .
|
||||
G[i]=P[0][i]); H(else O[j] . G[i]=P[1][i];)); /*BLOB*/ H(if (!
|
||||
q) Z("Generation %4zu\tOffspring %2zu: %s -> " ,G,j+1,O[j].
|
||||
G); H(for/*OF*/ (i=0; i<Y(T); ++i) { H(if (X(1,100) <= R || m)
|
||||
O[j].G[i]=c(); })); H(if (!q) Z("%s (%s)\n",O[j].G,m
|
||||
?"monkey typing" : "mutation"))); /*OCTETS*/ }); H(if (!
|
||||
q) Z("**\n")); })); return 0; }
|
||||
@@ -0,0 +1,85 @@
|
||||
#include "SDL.h"
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define S(a,b) b*a
|
||||
#define A int
|
||||
#define N(a,b) b=a
|
||||
#define D "sand.txt"
|
||||
|
||||
#define G(_) SDL_##_
|
||||
#define GX(_) G(Create##_)
|
||||
#define GY(_) G(Destroy##_)
|
||||
#define GZ(_) G(Render##_)
|
||||
#define GA(_) if(!(_)){pri\
|
||||
ntf("L%d SDL Error: %s\n",_\
|
||||
_LINE__,G(GetError)());exit(1);}
|
||||
#define GB(__,_G,G_,GG) G_(__);_G(GG)
|
||||
|
||||
// important constants
|
||||
int ONE = 1;
|
||||
int ZRO = 0;
|
||||
|
||||
uint64_t V[]={
|
||||
0x3e62f947d02f49bc,0xbed0bdb402d9ed0c,0x3f2acda5f517c6b6,0xbf79c2448bb7eca0,
|
||||
0x3fc091746cc843a3,0xbffe1cce22ed8f8f,0x4033e22da447fb5b,0xc06352e2b9c91269,
|
||||
0x408bacb717fa44db,0xc0aceee93bc74aae,0x40c59df977dbfd52,0xc0d639fd2e095789,
|
||||
0x40dd7401cce0cb64,0xc0d63a270ab7d164,0x40bc52eb9bd102e2,0x3fe0000000000000};
|
||||
|
||||
#define L lL[L1
|
||||
int Ll1(A i)
|
||||
{N(0;,double Ll)for(
|
||||
A N(0; l<,l) 16; ) S(( double*
|
||||
),S(i+,Ll= Ll))(V+l++);return Ll; }
|
||||
#define M(a,b);L+a]=(L+a]&2)|(LL/b&1)
|
||||
void _L(int* lL,A l,A L1){ A N( Ll1,
|
||||
LL )( ( L]==1)| 2*(L +1]== 1) |4 * (
|
||||
L+ l] != 0)|8 *(L +l+ 1]!= 0)) M(0,
|
||||
1) M(1,2)M(l,4)M(l+1,8);}N(0,A l1L);
|
||||
#define L_(l11,L1) for( N(( l11);,\
|
||||
l1)l1 < lll;l1 +=ll1)for( N(L1 ;ll<\
|
||||
l1l-,ll)1; ll +=2)_L( Ll,l1l,l1+ll);
|
||||
void JJ(A*Ll,A l1l,A l){A ll,l1,S((l
|
||||
-1),lll=l1l),N(2*,ll1)l1l;l1L^=
|
||||
1;L_(l1L?l1l:0,l1L)}
|
||||
#define GU
|
||||
#define GO 1
|
||||
#define G0 >=0
|
||||
#define G2 GZ (er*)
|
||||
#define G3 G( Init)
|
||||
#define G5 G( Quit)
|
||||
#define GV while
|
||||
#define GC G( QUIT)
|
||||
#define GG G( Delay)
|
||||
#define GW G( Event)
|
||||
#define GE GZ (Clear)
|
||||
#define G1 G( Window*)
|
||||
#define GI GY (Window)
|
||||
#define G6 GX (Window)
|
||||
#define GF GZ (Present)
|
||||
#define G8 GX (Renderer)
|
||||
#define GH GY (Renderer)
|
||||
#define GN G( PollEvent)
|
||||
#define G4 G( INIT_VIDEO)
|
||||
#define G7 G( WINDOW_SHOWN)
|
||||
#define GD G( SetRenderDrawColor)
|
||||
A main(A ac,char**av){int P[4018]; memset(P,0,4018*
|
||||
sizeof(A));S(j=fopen,FILE)(ac>1?av[1]:D,"r");if(j){
|
||||
for(A F=0;F<4018; F++)P [F]=getc(j)-96;fclose(j) ;}
|
||||
|
||||
G1 GL=0;G2 GM = 0;GA (G3(G4 )G0 )atexit(
|
||||
G5); GA( GL= G6( D, ZRO, ZRO,
|
||||
800, 480, G7)) GA( GM= G8( GL,
|
||||
-1,0) )int GK= GO+ (ONE= ZRO ++); GW GJ;
|
||||
GV( GK){ GV( GN(& GJ) GU!= 0){
|
||||
GK= GJ. type== GC? ONE: GK;} GA(
|
||||
GD(GM,0,0,0, 255) G0); GE( GM); G(Rect)Q;Q.w
|
||||
|
||||
=Q.h=10;JJ(P,82,49);A k=+0;while(k<81&&P[k])k++;P[k
|
||||
]=l1L;for(A K=ZRO;K<49; K++){for(A O=1;O<81; O++){Q
|
||||
.x=-(ZRO-O)*10;Q.y=(K-1)*10;A v=P[82*K+O];if(v==ZRO
|
||||
)GD(GM,238,204,106,255); else if(v==ONE)GD(GM,0,0,0
|
||||
,255); else GD(GM,143,149,157,255);GZ(FillRect)(GM,
|
||||
&Q);}}GB(GM,GG,GF,40)GU;}GB(GM,GI,GH,GL);return 0;}
|
||||
@@ -0,0 +1,197 @@
|
||||
/**
|
||||
* \file prog.c
|
||||
*
|
||||
* \brief Renders an HTML chart from JSON data
|
||||
*
|
||||
* \author Qiming HOU
|
||||
*
|
||||
* Copyright (C) 2017-2018, Qiming HOU
|
||||
*
|
||||
* Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported
|
||||
* (CC BY-SA 3.0), you may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://creativecommons.org/licenses/by-sa/3.0/
|
||||
*
|
||||
* This file is an IOCCC submission.
|
||||
*
|
||||
* This thing wouldn't be possible without the advent of C / HTML standards.
|
||||
* We all love the new math functions in C99 and the inclusion of SVG in
|
||||
* HTML5.
|
||||
*
|
||||
*/
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
/* Macros are named after fashionable jargon */
|
||||
|
||||
#define J ceil(log(erfc(1)))
|
||||
#define S calloc(3, 1)
|
||||
#define O strcat(strcat(S, m(37)), m(102))
|
||||
#define N I(T(6))
|
||||
#define _(X) mmap(fopen(S, S), 64, 3, 1, X, 0)
|
||||
#define H(X) dup2(fileno(tmpfile()), X); m(ftruncate(X, 64))
|
||||
#define T(X) getenv(L(r(1, X, 64)))
|
||||
#define M(X, Y) memcmp(T(X), L(Y), 1)
|
||||
#define L(X) memset(S, X, 1)
|
||||
|
||||
#define m(X) memset(S, X, N)
|
||||
#define o(X) r(copysign(1, X), exp2(J), exp2(J))
|
||||
#define b(X) o(r(abs(X), J, 0))
|
||||
#define i(X) setenv(L(70), L(r(1, X, 48)), 1)
|
||||
#define l(X, Y) setenv(m(r(1, X, 64)), L(Y), 1)
|
||||
#define e(X) setenv(m(r(1, X, 64)), \
|
||||
strcat(strcpy(malloc(r(p(T(X)), 1, 2)), T(X)), T(4)), 1)
|
||||
|
||||
#define W(X) printf(O, floor(X))
|
||||
#define E(X) putchar(r(N, X, 32))
|
||||
#define B(X, Y) sprintf(_(r(N, X, 3)), O, Y)
|
||||
|
||||
#define j(X) t; E(55); E(41); E(36); E(52); E(40); E(29); W(X); t; E(40); \
|
||||
E(37); E(41); E(39); E(40); E(52); E(29); W(X)
|
||||
#define a(X) l(8, 0); i(o(M(8, X)))
|
||||
#define v t; E(16); t
|
||||
#define A E(52); E(37); E(56); E(52)
|
||||
#define s W(r(200, sin(I(_(4))), 250)); t; W(r(200, cos(I(_(4))), 250))
|
||||
#define c E(38); E(41); E(44); E(44); E(29); E(50); E(39); E(34); E(8); \
|
||||
W(r(cos(p(T(2))), 48, 48)); E(5); E(12); E(16); E(5); E(12); \
|
||||
W(r(sin(p(T(2))), 48, 48)); E(5); E(9); t; E(15); E(30); e(2)
|
||||
#define r fma
|
||||
#define I atof
|
||||
#define p strlen
|
||||
#define t E(0)
|
||||
|
||||
#define rulez o(r(J, exp2(N), p(T(1))))
|
||||
|
||||
/**
|
||||
* @brief Renders the chart from JSON input
|
||||
*
|
||||
* Expected input format:
|
||||
* [ {"foo": string, "bar": number}, ... ]
|
||||
*
|
||||
* @return nothing
|
||||
*/
|
||||
int C(){
|
||||
i(1);
|
||||
l(4, getchar());
|
||||
l(8, r(
|
||||
I(T(5)), 4,
|
||||
r(N, o(M(4, 33)), r(N, b(M(4, 44)), r(b(M(4, 34)), 2, 1)))
|
||||
));
|
||||
i(0);
|
||||
a(13);
|
||||
E(28);
|
||||
E(48);
|
||||
E(33);
|
||||
E(52);
|
||||
E(40);
|
||||
t;
|
||||
E(36);
|
||||
E(29);
|
||||
E(7);
|
||||
E(45);
|
||||
W(250);
|
||||
t;
|
||||
W(250);
|
||||
E(44);
|
||||
s;
|
||||
B(1, r(
|
||||
exp2(r(J, log2(I(_(5))), log2(I(T(1))))),
|
||||
r(2, acos(J), 0),
|
||||
I(_(4))
|
||||
));
|
||||
E(33);
|
||||
W(200);
|
||||
t;
|
||||
W(200);
|
||||
v;
|
||||
E(r(1, o(r(2, I(T(1)), r(J, I(_(5)), 0))), 16));
|
||||
v;
|
||||
s;
|
||||
E(58);
|
||||
E(7);
|
||||
c;
|
||||
setenv(m(65), strchr(T(1), r(1, I(T(7)), 9)), 1);
|
||||
l(7, r(J, I(T(7)), 49));
|
||||
fflush(fopen(S, S));
|
||||
assert(rulez);
|
||||
a(12);
|
||||
l(5, 48);
|
||||
E(28);
|
||||
E(15);
|
||||
A;
|
||||
E(30);
|
||||
a(9);
|
||||
m(write(1, T(4), N));
|
||||
a(8);
|
||||
l(5, 50);
|
||||
E(28);
|
||||
E(50);
|
||||
E(37);
|
||||
E(35);
|
||||
E(52);
|
||||
j(16);
|
||||
t;
|
||||
E(56);
|
||||
E(29);
|
||||
W(472);
|
||||
t;
|
||||
E(57);
|
||||
E(29);
|
||||
W(r(p(T(2)), 28, 0));
|
||||
t;
|
||||
c;
|
||||
E(28);
|
||||
A;
|
||||
t;
|
||||
E(56);
|
||||
E(29);
|
||||
W(500);
|
||||
t;
|
||||
E(57);
|
||||
E(29);
|
||||
W(r(p(T(2)), 28, r(J, 16, 0)));
|
||||
E(30);
|
||||
a(7);
|
||||
l(5, 48);
|
||||
l(4, r(1, I(T(7)), 9));
|
||||
e(1);
|
||||
l(7, r(J, I(T(7)), 49));
|
||||
B(2, r(1, I(_(5)), I(strrchr(T(r(N, J, 2)), r(N, I(T(7)), 9)))));
|
||||
a(6);
|
||||
e(1);
|
||||
a(1);
|
||||
i(r(N, b(M(4, 58)), 0));
|
||||
l(5, 49);
|
||||
a(1);
|
||||
i(r(N, b(M(4, J)), 0));
|
||||
l(7, 9);
|
||||
l(5, 51);
|
||||
l(2, 9);
|
||||
return C();
|
||||
}
|
||||
|
||||
int main(){
|
||||
i(1);
|
||||
E(28);
|
||||
E(51);
|
||||
E(54);
|
||||
E(39);
|
||||
j(r(2, 250, 250));
|
||||
E(30);
|
||||
l(1, 10);
|
||||
l(2, 9);
|
||||
l(8, 9);
|
||||
l(4, 9);
|
||||
l(5, 9);
|
||||
l(7, 9);
|
||||
H(3);
|
||||
H(4);
|
||||
H(5);
|
||||
return C();
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
#include<fcntl.h>
|
||||
#include<unistd.h>
|
||||
#include<termios.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/mman.h>
|
||||
# define L } if(!i -- ){
|
||||
struct timeval F,G; struct termios H,U={ T} ; enum{ N=64,a=N<<7,b=a-1,c=a*32,d
|
||||
=c-1, e=c/ 2,f= a*2, g=a/2,h =g/2,j =h/ 2,Q=V*j*5} ; char*s=P,K,M;
|
||||
int* p, l[ a] ,m,n,J,o=A, O=j,E,R,i,k,t,r,q,u,v,w,x,y,z
|
||||
,B,C, *D,Z ;int main (){ for(D=mmap(D,4*Q,3,W,open(I,2 ),K); *s; o
|
||||
++[ l]=k|=* s++%N){ k=* s++%N<<12; k|=*s++% N*N; } tcgetattr(q,& H); tcsetattr
|
||||
(y,2, &U); for( fcntl(B,4,4); ; o&=b){ if(k& c){ q=- --k%N; if(!q)
|
||||
k-=c ;i =k /N&7; { L L if(J&1) m+= t; J|=m%N*c; J/=2; m
|
||||
/= 2; if(! q&&r ^n){ m^=d; J^= d; n=0; } L L J+=J; J|=m>=0; if(q){
|
||||
m+=m; m|=J/c; m+=m<0?t:-t; } else{ m+=(m<0)*t; if(r)m^=d; if(n^r)J^= d; n=0; }
|
||||
L if( (m^2 *m)/ e%2) k&=d; else{ J+=J; m+=m; m|=J/c; } L m|=n*c; J
|
||||
|= m %N *c ;m /=2; J /=2; L m+=m; J+=J; J|=n; m|=J/c; L
|
||||
m+=m; m|=n ; } J&=d ; } else{ i=k/f; t=i?k&b:16; p=l+t; if(k&a)p=
|
||||
l+((*p+=13>i&&7<t&&16>t)&b); { L i=1; L*p=m; L*p++=o|n*e; o=p-l; L*p=0; L m=*p
|
||||
; L m ^=*p ; L t=m; m +=*p; m+=d<m ; n|=((m^t)& (m^*p))/e; L m+=*p
|
||||
; n=m/c; L k=*p; if( !Z||k/f-8) /*$ %*/ continue ; k=-k
|
||||
; L++*p; o +=!(*p&=d) ; L m&=*p; L if(m!=*p)++ o; L o=p -l; L if(
|
||||
k&a)n=m/e; if(k&g)J= 0; r=k&h&&m&e; if(k&j)J|=m; else if(r)m^=d; if(k&512)m=0;
|
||||
i=k/N &7; { L if(k &4)J ^=d; if(k&2)m|=J; if (k&1 )m|= q; }
|
||||
else { if(k%N)k += c; { L t =o ++[ l] ; if(r
|
||||
)J^=d; L L t=o++[l]; if(r )J^=d; m-=t; if(m>=0 ){ k -=c; n=1;
|
||||
++o; } } i=2; } L if(Z)k=-1; else{ if(k&8)m=0; t=r=0; i=k/N%N; if(i==27){ if(k
|
||||
&2)u=v=w=Z=0; } if (i==57){ i=k/16&3; { L w =1; if(k&1)x =0; if(k&
|
||||
2) { t= z/N; t= t/80*/*/*/100+t% 80; r=0 ; while(t) { r
|
||||
+=t%10*w; t/= 10;w <<=4; } m|=r; } if(k&4){ r=m ; t=0; while (r) {
|
||||
t+=r%16*w; w*=10; r>>=4; } r=t/100; t%=100; if(V<=r||79<t)x|=c/8; else z=(r*80
|
||||
+t)*N ; } w=0; L if(k& 1&&x &(e|g) )++o; if(k& 2)m|=x |y;if
|
||||
(k&4 )C =- m&65535; L if( k&1 )x=y=0; if (k&2
|
||||
)B=m; if ( k&4) { y^=m&(h|j| j/2); if(y&j ){ y^=j;x|=g ; do{
|
||||
B&=b; if(y&j/2)z[D]=B[l]; else B[l]=z[D]; ++z; z%=Q; ++B; } while(-- C); } } }
|
||||
x%=e; if(x /a)x |=e; if(x&(e|g)&&y&h)u|=c ; else u%=c; L if(
|
||||
k&1) t= h; if (k&2 )r= e; if( k&4){ r=j; u&=~
|
||||
h ; } if(k &16) Z=f* 2; L L L t=f; if(k&2 )m|=M|Y; if( k&4)m
|
||||
|=u|v; L t=a; if(k&4){ K=m&~Y; write(1,&K,1); u|=t; t=0; } } i=2; if(t){ if(k&
|
||||
1&&u&t)++ o; if(k&2)u &=~ t; } if( r){ if(k&32) w=r; else v&=~r; }
|
||||
} L if(k&a)m=k; else { t=0; if( k & N)t |= m/e%2; if(k&
|
||||
128)t|=!m; if(k&256)t |= n; if( k& 512 )t=!t; o +=t; if(k& h)n =0;
|
||||
if(k&g)m=0; if(k&1)m^=d; if(k&2)n^=1; if(k&4)m|=S; if(k&8){ m|=n*c; m+=m; if(k
|
||||
& j)m +=m; m|=m /a/N ; n=m/c; } if(k&16){ m|=n*c; m|=m *2%N*
|
||||
c; m /= 2; if (k&j) m/=2; n=m/c; } if (k &32)
|
||||
{ if( Z)k= -1 ; else break; } } } } n&=1; if(k<c) { m &= d;
|
||||
o &=b; if(!R--){ if (~u&f &&read(0, &M,1)>0){ if(X&& M== X)break; R=0; u|=f; }
|
||||
gettimeofday(&G,0); G.tv_usec/=16667; if(G.tv_sec>F.tv_sec||F.tv_usec<G.
|
||||
tv_usec){ F=G; if(v&j){ p=l+7; ++*p; *p&=d; if(!*p)u|=h; } R=0; } if
|
||||
(!R){ E=O/4; O=4; } O+=R=E; } if(!++k||(v&e&&u)){ *l=o|n*e|Z;v%=
|
||||
e; o=1+!k; Z=0; } v|=w; w=0; k=o++[l]; } }tcsetattr(w,1,&H); }
|
||||
@@ -0,0 +1,91 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#define p return
|
||||
#define X typedef
|
||||
#define E {
|
||||
#define B }
|
||||
#define stup(y)printf("%.11s\n",(char*)y);
|
||||
#define $ printf("\x1b"
|
||||
#define G(y)usleep(y);fflush(stdout);
|
||||
#define O __DATE__+7
|
||||
#define K printf(
|
||||
X unsigned short P;
|
||||
X int _;
|
||||
_ s=37985; //Sleeping time factor
|
||||
X char H;
|
||||
_ o,b,a,f,g,k, m; // Oh, be a fine girl, kiss me
|
||||
FILE *W;
|
||||
X enum {T,F} z; //True & False
|
||||
X double w;
|
||||
_ a5_, N = 11,A4=1<<3,a8_=17,A8=2*2,aI_=~-(__FLT_MAX_EXP__<<F);
|
||||
H l[]="uDSYT8|TCPZ8|TVCTKp]X^EY|XKPC8aYTRUPp]ZPXU";H I[]="Fo~y*lcdn*yego*Oky~oxd*ommy";/*
|
||||
/\
|
||||
c_
|
||||
[9];
|
||||
alpha Ursae Minoris A main
|
||||
*/_ a1,
|
||||
a3 ,a4=
|
||||
024;P a2
|
||||
,a5;w Z( w
|
||||
D,_ Y)E if(Y
|
||||
==T)p F;if(Y
|
||||
==!0)p D; w b=
|
||||
Z(D,Y/2);if(Y>2 /* alpha Ursae Minoris Ab*/
|
||||
)p b*b*D;p b*b ;
|
||||
B _ u(_ x) E if( x <2)p
|
||||
F;p x*u(x-unix); B
|
||||
/*alpha Ursae Minoris B*/ _ vir(H __[]) E _ e,
|
||||
q=0;for(e=T;e[__];e++)
|
||||
q=q* -~9+__[e]-48;p q;B P A
|
||||
(H *a7_, _ a6_ );w V(_ v
|
||||
,_ i){v%=0550;w D='-'-'-';
|
||||
for(i-=i;i^__CHAR_BIT__;i++
|
||||
)D+=Z(_POSIX_TRACE,i)*Z(0x1.1df46a226e211p-6 *v,2*i)/u(2*i);p D;B _ main(a6,n)_ a6;H**n;E _ a7,A1,a1_,a8,t,
|
||||
A6,D,Y;size_t a3_;_ A2[]=E'q',W_OK,5911774,'y',13,1052160,77,15,1709568,'5',a8_,1314816,34,18,1446400
|
||||
,91,22,1314816,12,28,F_OK B;time_t j =time(NULL);a4 *= '_' ;float and [] =/*trolling is a art */
|
||||
E 4612954808543207739097088.0, 207.285645, 214354950132336733650542884425029386240.0 B ;
|
||||
struct tm R = *localtime (&j) ;for (;t=aI_ ,a5_[l];) l[a5_++] ^=-~__LINE__ ; A6=a4 +=
|
||||
R.tm_year;a4 /='d';ssize_t A3 =1;k=A6/'d',b=k/A8,a=k%4,o=(k-((k+A4)/25)+1)/F_TEST
|
||||
,m=(19*(A6%a4 )+k-b-o+__DBL_DIG__)%30,k=(A6%'d')/R_OK;H*a2_=NULL;f=(A6%'d')%
|
||||
R_OK,g=(' '+2*a+SEEK_END*k-m-f)%7,k=__ATOMIC_SEQ_CST;W=fopen(__FILE__,
|
||||
"r" ); $"[40m\033[2J\033[;H\x1b[?25l");if(*(H *)(_[])E X_OK B)stup
|
||||
(and)A3 =getdelim(&a2_,&a3_,'\0', W);b=((A6%19)+N*m+22*g)/(N*
|
||||
')'),o=m+g-(~-A4)*b+'r',D=o/31;for(;a1[I];a1++,a5_=0xb3)
|
||||
I[a1 ]^= '-'-'#';Y=o% ~-' ' +F;for(a3 =T;a3<A3 ;++
|
||||
a3 )a2 =(a2 +a2_[a3 ])%255,a5 =(a5 +a2 )%t;
|
||||
if((a5 <<8|a2 )^s) goto a4_;$ "[1;12H " )
|
||||
;G(a4 *s)a4 ^=a4 ;k*=2172211;while(a5_-->-1)
|
||||
E $ "[40m\x1b[2J");for(a6=W_OK;a6<025;a6 +=3)
|
||||
E a7 = A2 [ a6 -__FLT_RADIX__ ] - 0102, a8 =k
|
||||
+ a6 [A2],a1 = A2[~-a6 ] *0x1.db6db6db6a92ap+0 ;
|
||||
a1-=~-__DBL_DIG__,a1_=a7 *V(a5_,_XOPEN_VERSION ) -
|
||||
a1*V(90-a5_,a7 )+66,A1 =(a7*V(90-a5_,a1 ) +a1 *V (
|
||||
a5_,a8 )+0xe)/1.8571428571;if(A1 >T&&a1_>0) E $"[3"
|
||||
"8;2;%d;%d;%dm", (a8>> 16 )&t,(a8>>8)& 255,a8 &t);$
|
||||
"[%d;%dH%c %.*s",A1,a1_ ,a5_>90?46:111,6,a5_>45
|
||||
?"":l+ ((a6-F_TLOCK) / __ATOMIC_RELEASE)*6);
|
||||
B B G(u(A4 ) )B/**/ a4_:$ "[H\x1b[0m"
|
||||
"\x1b[?25h") ;if( ( D^ (R.tm_mon+1))
|
||||
== (Y-= R./* */ tm_mday) ) E K
|
||||
"%s\n",I);B K "" "%d\n",
|
||||
vir(O) );p a4 ;B //END\
|
||||
OF THIS ENTRY IS\
|
||||
N E A R SO NEAR\
|
||||
.***** ******\
|
||||
**** ***\
|
||||
. .
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
typedef unsigned
|
||||
long W; static
|
||||
W*i,t,c,h,e,r,y,**a,*b,*o,*u,*n,*d,*s;enum
|
||||
_ {F=6 , I=7,N= 5 , D = 3 ,M=14
|
||||
,Y=0 , C=8,L = 1 , U = 9 , E=4};
|
||||
static void (* _ ) ( ) ; static void*(*B)(),*T;
|
||||
static char m[0x3543],*Z;void *meltdown(void *p,size_t
|
||||
sz){ void *z=realloc(p,sz);if(!z||!sz)exit(n?y!=*n:I-F);
|
||||
return z;}void magic(W*p){W j;for(j=0;j<p[F];j++){W*v=T,Q=
|
||||
p[M+j];W*J=a[Q];if(N[J]==~0LU){ _ (Q);v=&I[J];}else if(J[D])
|
||||
{v=&N[J];}if(v&&I[p]>*v)I[p]=*v;}}void cast(void){B(i,Y);}void
|
||||
spell(W G,W H){ _ (); _ (H); _ (H, G); _ (H); _ (G);}void witch(
|
||||
void){e=n[--E[b]];a[e][D]=0;if(b[C]>=U[b]){c=2*(b[C+L]?b[U]:1);o=B
|
||||
(d,c *sizeof*o);u=B(s,c*sizeof*o);b[M-N]=c;d=o;s=u;}d[b[N+D]++]=e;if
|
||||
(e>y)y=e;}void*brew(void*g,size_t l){puts(l?"":"Out of range.");exit
|
||||
(g?1:1);}void newt(W *p){F[p]=0;N[p]=I[p]=~F[p];}void bubble(W H){for
|
||||
(t=0;t<H;t++){s[i[d[H-t-1]]---1]=d[H-t-1];}}void boil(W G){for(t=0;t<
|
||||
G-1;t++){i[t+1]+=i[t];} _ =bubble;}void hex(W G,W H){for(t=0;t<H?G:Y;t++
|
||||
){i[d[t]]++;} _ =boil;}void nasal_demons(W G){for (t=Y;t<G;t++)i[t]=0; _
|
||||
=hex;}void toil(void){i=B(i,y*sizeof*i); _ =nasal_demons;}void bat(W l)
|
||||
{C[b]=0; _ =witch;do _ ();while(e!=l);y++;if(!y)B=brew; _ =toil;spell (C
|
||||
[b],y);printf("%lu:",b[L]++);for(y=0;y<C[b];y++){printf(" %lu",s[y]);}y=
|
||||
0;puts("");}void potion(W l){W*p=a[l];if(p[N]!=~0LU)return;p[F+L]=h;p[N]
|
||||
=h;p[D]=1;h++;n[b[L+D]++]=l;if(E[b]==r){r*=2;n=B(n,r*sizeof*n);}magic(p)
|
||||
;if(I[p]==p[N]){bat(l);} _ =potion;}void O(void){n=B(n,2*sizeof(*n));Y[n
|
||||
]=r;if(a&&a[t]){r=2;b=a[t]; _ =potion;b[L+C]=b[L]^=b[L];E[b]=1;for(y=0;y
|
||||
<*n;y++){if(a[y]){ _ (y);}}} _ =cast;h=0;}void toad(W g,W j,W*l){o=B(a
|
||||
[g],((a[g]?a[g][F]:0)+j+M)*sizeof*o); _ =newt;if(!a[g]){ _ (o);}for(y=
|
||||
0;y<j;y++){o[F[o]+F+C]=l[y];o[F]++;if(l[y]==g){continue;}u=B(a[l[y]]
|
||||
,((a[l[y]]?a[l[y]][F]:Y)+M)*sizeof*u);if(!a[l[y]]){ _ (u);}a[l[y]]
|
||||
=u;}y=0;a[g]=o;}void familiar(void){W**w;e=r;if(!r){r=1;}while
|
||||
(r<=t){r*=2;if(!r){B=brew;break;}}w=B(a,r*sizeof*a);if(!
|
||||
Z){Z="\x5f";}for(y=e;y<r;y++){y[w]=T;}y=0;a=w;
|
||||
_ (Y[i] ,c-1,&i[1]);}void spectre(void ){if((W)
|
||||
*Z-060 >011){
|
||||
return;} _ =toad
|
||||
;i[c]=( W)atoi(
|
||||
|
||||
Z);if(i[c]>t){t=i[c];}c++;if(c==h){i=B(i,2*h*sizeof*i);h*=2;}y=i[c-1];if
|
||||
((Z=strtok(T," \t"))){if(U>=(W)*Z-I*I+L) _ =spectre;}}int main(int argv,
|
||||
char**argc){h++;if(argc){T=argc[argv];} _:_ =O;i=(B=meltdown)(T,h*sizeof
|
||||
*i);while(*argc||Z){c=0;*argc=fgets(m,sizeof(m),stdin); _ =spectre;if(!*
|
||||
argc){Z=T;goto _ ;}Z=strtok(*argc,"\t ");while(Z&&(W)*Z-(M*D+F)<=U){ _ (
|
||||
);}if(t>=r)familiar();else if(c>0){ _ (i[Y],c-1,&i[1]);}} _ ();goto _ ;}
|
||||
@@ -0,0 +1,41 @@
|
||||
#include/*nui*/<stdio.h>//;70/*#}r[3]op;f(p;ok})i[;k-r*?(rc&(o}nr**s*2)!}-mpi##
|
||||
extern int n0;typedef int x;x//i/eu2->uuo0uo=;nXfdx+1e8uOeh&k-x[e1(i)>{=eqa,nii
|
||||
n,u,k,o,_,i=1;static char//[X]/f/t]:n=t-rxt+0f[=(-=+;t)*,aa!>1=dt0pzrpi(l)idtnn
|
||||
d[1125][0x401];x main(){if(//]* nu]O[nc-(ac=;odxx1k]}u)2ulr(=00+u2=ee&fos{n,*cc
|
||||
i){for(n=0;1024>n;n++)//]Tkhng[0ur)[u[h>u)h1or];>]-=Or):=l*Ou);+r4poa&(=ep(qnll
|
||||
for(u=0x0;u<1025;)d[n][u++]=64//[n;o]ua0=)a,<(=}X;no[n{8uo)=&{i]n)?fl!!g{u)=,uu
|
||||
/2;for(u=n=0////////]_#p^#onui[/u+}+?+r;d{r/X////////////c/(&if=-)p(l(xewt{1udd
|
||||
/4;EOF!=(o=////////////]#ebdl#ah[0}n/1()////////////////////1f(k1)*ion)thsO;,ee
|
||||
getchar())// //////]u#oh[,;/////////// //////;;)2nc={ci(=ck<<
|
||||
&&u<1024;// ///////////////// ////}{:t((ihl"Nh,ss
|
||||
)u+=o-10// ///////// ///2)nifaeYUaott
|
||||
?n<1024// ////,n(r(uLr,dd
|
||||
?d[n++// @@@ ///td(EuL*Xli
|
||||
][u]=o// @ @ ///+)Or;O,io
|
||||
,k=k<// @ @ ///)Fii;xb.
|
||||
n?n:k// @ @ ///"fi,.h
|
||||
,0:0// @@@ //)(n/h>
|
||||
:!(n// //;0t/>/
|
||||
=0);// //!/|//
|
||||
for(// 5 //=/*/%
|
||||
;k--// 12 =q tni
|
||||
;)d[k// //))u/
|
||||
/01][u// //1Ni/
|
||||
/1]/*n/// //(Ui;
|
||||
>*/=!/*N// //=K~/
|
||||
h*/1,/*UN/// //nqO~*
|
||||
.*/puts/*n//// //[/?,]
|
||||
o*/(d[k])/*u////// /////// //1*q[u
|
||||
i*/;}else{//t///////////// /////////// //,stup;
|
||||
d[0][0]++;puts(/*f///////// //]====[//////// //(N tni
|
||||
ti&/N/////.///s/It]]_bz8[// ///SHOUJO\vv/////////// //;}"jvo"
|
||||
su /U/////N///t}Ue]~J#phi[// //\SHUUMATSU|]_[//////// ///,"/utf"
|
||||
<ntt/fe=)|UI0{u;Nnu]^u#j[v// //,^^\RYOKOU/:)]a#p[.// ///"c!tj!xb"
|
||||
e/ n/ilI(|/(1ep)/ *>->IOCCC// //]^#dbi#`h#anuok^u#[// ///"S","/ttfm"
|
||||
d/eit{i(rl/r-s-"/e/]o[^^^^^!/////]hfhu[Qj:FfT]uhp)~[[// ///"iuspx!fsb!tho"
|
||||
unn;n)h=a({aIl0onnt//"jiu!fmcjefoJ","/zsbdt!fsb!tobnvI!" "///","~<1!osvufs<*2"
|
||||
lriqi(w!hf)h=e1trin//".;2;1;1+*432&25\*3,o)_6)92x\sbiduvq@1=v@2:.o@4:.o),v,1/>"
|
||||
cef ;n{Fci2cl}-iufi//"v*1?**)sbidufh>o))fmjix|*)ojbn!uoj<v-o!uoj31\?i/pjeut=fe"
|
||||
ntetli)Ot{3t;}lhte}//"vmdoj$","svpU!utbM!(tmsjH"{=]041[]6[u,n*rahc;q tni nretxe
|
||||
ixdn,aqEe)-u)}=Ced;//};0+nruter;)K(U;)++n*--;n*;K=n(rof{)(niam )O,K,U(N enifed#
|
||||
#e#iIm((g)Ip ;I"r#0.[(c)2018][cffc189a]*/"Nuko");}return+0;}//>h.oidts<edulcni#
|
||||
Reference in new issue
Block a user