Skip to main content
Give credit for more golfing
Source Link
user36046
user36046

C (clang), 9595 91 bytes

f(i){char*c;for(i=9999;i;asprintf(&c,"%d",ii=1e4;--),*c+c[1]+c[2]+c[3]==201&&strchri;*c+c[1]+c[2]+c[3]-201||index(c,48)&&puts(c))asprintf(&c,"%d",i);}

Try it online!Try it online!

-4 bytes thanks to @ceilingcat

C (clang), 95 bytes

f(i){char*c;for(i=9999;i;asprintf(&c,"%d",i--),*c+c[1]+c[2]+c[3]==201&&strchr(c,48)&&puts(c));}

Try it online!

C (clang), 95 91 bytes

f(i){char*c;for(i=1e4;--i;*c+c[1]+c[2]+c[3]-201||index(c,48)&&puts(c))asprintf(&c,"%d",i);}

Try it online!

-4 bytes thanks to @ceilingcat

Source Link
user36046
user36046

C (clang), 95 bytes

f(i){char*c;for(i=9999;i;asprintf(&c,"%d",i--),*c+c[1]+c[2]+c[3]==201&&strchr(c,48)&&puts(c));}

Try it online!