Congratulations to: * 2024/anders - Prize in sound coding - layered music generator * 2024/burton - Prize in pentagrammatology - wordle hard mode solver * 2024/cable1 - Prize in bot talk - LLM inference engine * 2024/cable2 - Prize in murky waters - salmon recipe * 2024/carlini - Prize in perfect timing - Intel 4004 emulation * 2024/codemeow - Prize in tray planting - bonsai generator * 2024/endoh1 - Prize in patient pointillism - slow ray tracer in CPP * 2024/endoh2 - Prize in solid body physics - rotating rigid body simulation * 2024/ferguson1 - Prize in diabolical logistics - Oregon trail pact with the devil * 2024/ferguson2 - Prize in yil-tas - Navajo code talker translator * 2024/howe - Nice accent eh-ward - mini vi * 2024/kramer - Prize in linguistic arithmetic - natural language numerical calculator * 2024/kurdyukov1 - Prize in phased periodicity - phase of the Moon * 2024/kurdyukov2 - Prize in art restoration - JPEG artifact removal * 2024/kurdyukov3 - Prize in virtual quietus - gaming VM and doom * 2024/kurdyukov4 - Prize in embiggening - encode without literals * 2024/maffiodo - Prize in creative interpretation - Jav\*script interpreter * 2024/mills - Prize in ℤ₃ - Infocom v3 story interpreter * 2024/stedolan - Best one liner - icon from MD5 * 2024/straadt - Prize in imitative rebooting - OpenRISC CPU and Linux * 2024/tmarrec - Prize in cyclonic coding - 3D tornado simulation * 2024/tompng - Prize in quasi bijection - vortex encryptor decryptor * 2024/weaver - Sur prize - rickroll Ran `make update` to perform the above. new file: 2024/burton/.entry.json
55 lines
3.5 KiB
C
55 lines
3.5 KiB
C
#define _(x)for(F=0;x>F;++F)
|
|
float x,
|
|
T=240
|
|
,B,j= .53,f,y,O[4426112], Z,w,
|
|
R, n, m,E ,i
|
|
, U,g=
|
|
0; char P[60737];int d=80,X=79,Y=64,l=40, L=
|
|
551368, t,I,a,F,G,e,M=6400,c=15168,J =949,K=12,k=
|
|
0x1fbb4000;float*W(int t,int I,int a,int T){ return&O[(t
|
|
+ 82*I+6724 *a)+(c+T*L)];}float b(float x,float y,float n){x=x*x+y*y+n*n;int s=k+(*
|
|
( int*)&x>>1);return*(float*)&s; }void H(float x,float y,float n,
|
|
float*k,float*h,float*c) {U=b(x,y,n);*k=x/U;*h=y/U;*c=n/ U;}void s(int x, int
|
|
S){ _(L)O[c+x*L+F]+=.4*O[ c+S*L+F];}float*D(int o){return &O[(t *X+I)*3+o];} float
|
|
z( float k){return 0>k? -k:k;}void o(int x,int y){_(e){G=F%M;t= G%d+1;I=G/d+1;a=F /M+1;*W (t
|
|
,I,a ,x)=*W( t,I,a,y);}} void A(float*z){*z=*z<.5?.5:*z>85?85:*z;}void u(int E, int y,int u ,
|
|
int v ,int w) {_(e){G=F%M;t=G%d+1;I=G/d+1;a=F/M+1;float U=t-d*.4**W(t,I,a,u),J=I- d*.4**W(t,I, a,v) ,e=
|
|
a-d* .4**W(t ,I,a,w);A(&U);A(&J);A(&e);float F=U-(int)U,j=J-(int)J,l=1-j, i=e-(int)e,c=1-i;*W(t ,I,a
|
|
,E)=(1-F)*(l*c **W(U,J,e,y)+j*c* *W(U,1+J,e,y)+l*i**W(U,J,e+1 ,y)+j*i**W(U,1+J,1+e,y) )+F*(
|
|
l*c**W(U+1,J,e,y) +j*c**W(1+U,1+J,e,y)+l*i**W(1+ U,J,1+e,y)+j*i**W(1+U,J+1,e+ 1,y)
|
|
) ;}}int puts(const char*);void v(int x,int E,int k,int b,int c){*W(t,I,a,x)-=40*(*W(t+k,I+b ,a+c
|
|
,E )-*W(t-k,I-b,a-c,E));}void q(int u,int T,int w,int E){_(e){G=F%M;t=G%d+1;I=G/d+1;a=F/M+
|
|
1;*W (t,I,a,E)=-1./3*((*W(1+t,I,a,u)-*W(t-1,I,a,u))/d+(*W(t,I+1,a,T)-*W(t,I-1,a,T) )/
|
|
d+(*W ( t,I,1+a,w)-*W(t,I,a-1,w))/d);}_(e){G=F %M;t=G%d+1;I=G/d+ 1;a=F/
|
|
M+1;v(u,E,1,0,0);v(T,E,0,1,0);v(w,E,0,0,1 );}}char h[]=
|
|
" (\\tjxucXUCQOmqdkaoM&%$\033[38;5;141m+"; int main(){e=M*d;I=c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=B+f*U+l; f=1;a=0;for(;
|
|
(a++<1)|(d>x& y<d&
|
|
n<d& x>0&0<y& n>0); )
|
|
{f*=1-*W(n+1,1+y,x+1,6)*j;x=x+V*j;y=y+s*j;n=n+U
|
|
*j;}a=(1-f)*35;a=0>a?0:a>34?34:a;
|
|
int c=240+.44*a;P[q]=(c-200
|
|
)/10+48;P[q+1]=c%10+48
|
|
;P[q+3]=h[a];break;}f+=F
|
|
;}}puts(P);}}
|
|
|