7k views

C (gcc), Score: 2021 Thanks to GammaFunction A(){puts("Hell0 W0rld!");} Also, just for fun, here is a C program that had a score of 1 using overflow. It's a base64 encoded rar file https://pastebin....

6k views

C, 94 43 39 bytes thanks to ceilingcat for 39 bytes #define f(n)(int)(n>0?ceil(n):floor(n)) TIO

2k views

C (gcc), 59 bytes main(c,a){a=clock();for(c=100;c--;);printf("%dus",clock()-a);} Try it online!

5k views

C (gcc), 18 bytes f(a,b){a=~-a*b-a;} Noodle9's answer except using a= instead of return. Try it online!

595 views

C (gcc), 276 bytes i;j;k;h;l;m;n;o;f(char*b){char*c=calloc(m=strlen(b),1),*a=" \tqwertyuiop\aasdfghjkl\nzxcvbnm\tQWERTYUIOP\aASDFGHJKL\nZXCVBNM`1234567890";for(i=k=j=n=0;j<=m;l=a[i=index(a,b[j++])-...

2k views

C (gcc), 39 35 31 26 bytes e(a,b,c,d){a=(a-c)*6>d-b;} 0 is false 1 is true Input to function is (g1, b1, g2, b2) Thanks to Doorknob for -5 bytes Try it online!

1k views

C (gcc), 118 115 109 bytes #define A a[p] p;s;q;r;f(a,t)int*a;{p=t;for(q=r=*a;p--;s+=(A>0)-(A<0))q=q>A?q:A,r=r<A?r:A;a=q+r+(s>0)<(s<0);} Uses Robin Ryder's method. Try it ...

3k views

C (gcc), 225 207 202 201 bytes Thanks to ceilingcat for -24 bytes #define P strcpy(f+d,index("!?.",i[c-2])+!c? c;d;v(i,g,f)char*i,*g,*f;{for(d=0;i[c];c++,d++)strcmp("[?]",memcpy(g,i+c,3))?f[d]=i[c]:(...

11k views

C (gcc), 97 84 bytes Thanks to ceilingcat for -13 bytes f(char*b){printf(*++b?"%c(":"%c",*b);*b&&f(b)+printf(")");}a;main(){f(gets(a));} Try it online!

455 views

Python 3, 125 107 bytes 107 bytes thanks to Black Owl Kai i=input().split();j=k=1 for c in i: if j>1: while k>2: k-=1 if j%k<1:k=0 if k:print(c) j+=1;k=j Try it online! 120 ...

2k views

Hy, 44 bytes (defn a[p](print(get(str(*(+(int p)1)9))0))) Uses Grimy's method Try it online!

2k views

C (gcc), 53 32 31 bytes a(b,c,d)int*b;{b=b[(d%c+c)%c];} Thanks to wastl for 31 bytes Try it online!

3k views

C, 183 156 151 137 96 91 bytes Thanks to ceilingcat for 91 bytes. c,e;char*z,b;main(d){for(gets(z=b);e=*z>81?c-=e*~!d,d=0:e+1,*++z;);printf("%i",d?:c+e);} R is a rook, everything else is a ...

6k views

C, 209 203 137 bytes -66 bytes thanks to ceilingcat char a;main(f){gets(a);f=strlen(a)-3;a[f+1]=0;printf((*a==55&a==49&f==1?a=98:*a==49&!f?*a=98:a[f]==98|*a==48&!f)?"%s":"%...

1k views

C (gcc), 307 289 271 270 bytes -37 bytes thanks to ceilingcat *y=" IS ";main(){int*r[]={"WAR",y,"PEACE.\nFREEDOM",y,"SLAVERY.\nIGNORANCE",y,"STRENGTH.",0,"Under the spreading chestnut tree","\nI"," ...

2k views

C (gcc), 33 bytes, Score:34 Based off xibu's answer. int F(m,a,b){m=a%m?F(m,a+b,a):a;} Try it online!

3k views

C (gcc), 79 74 77 bytes 78 if the dash in compile arg is ignored. Port of TField answer. Increase in bytes is to comply with rules. -5 bytes thanks to ceilingcat and bznein b;c;f(a){for(b=0;++b<...

2k views

C (gcc), 85 84 64 60 bytes 60 bytes thanks to Neil p;f(char*s){for(p=strlen(s);p--;)putchar(s[p]^68%s[p]/3%8);} Try it online!

435 views

C (gcc), 109 46 bytes Thanks to Johan du Toit for -63 bytes f(char*s){for(;*s++-=(*s-97u<26&rand())*32;);} Try it online!

10k views