Skip to main content
Code shortening
Source Link
ErikF
  • 4.8k
  • 9
  • 11

C (gcc) with -m32, 90 85 8383 79 bytes

  • -2 thanks to ceilingcat
  • -4 by removing an unused variable
c,v;f(char*s){for(v=s;v**s;)index("aeiou",c=*s++*s++)&&printf("shm",v=0);puts(v?:--s);} 

Try it online!Try it online!

C (gcc) with -m32, 90 85 83 bytes

  • -2 thanks to ceilingcat
c,v;f(char*s){for(v=s;v**s;)index("aeiou",c=*s++)&&printf("shm",v=0);puts(v?:--s);} 

Try it online!

C (gcc) with -m32, 90 85 83 79 bytes

  • -2 thanks to ceilingcat
  • -4 by removing an unused variable
v;f(char*s){for(v=s;v**s;)index("aeiou",*s++)&&printf("shm",v=0);puts(v?:--s);} 

Try it online!

Code shortening
Source Link
ErikF
  • 4.8k
  • 9
  • 11

C (gcc) with -m32, 90 8585 83 bytes

  • -2 thanks to ceilingcat
c,v;f(char*s){for(v=s;v&&(c=*s++);v=s;v**s;)index("aeiou",cc=*s++)&&printf("shm",v=0);puts(v?:--s);} 

Try it online!Try it online!

C (gcc) with -m32, 90 85 bytes

c,v;f(char*s){for(v=s;v&&(c=*s++);)index("aeiou",c)&&printf("shm",v=0);puts(v?:--s);} 

Try it online!

C (gcc) with -m32, 90 85 83 bytes

  • -2 thanks to ceilingcat
c,v;f(char*s){for(v=s;v**s;)index("aeiou",c=*s++)&&printf("shm",v=0);puts(v?:--s);} 

Try it online!

Code shortening
Source Link
ErikF
  • 4.8k
  • 9
  • 11

C (gcc) with -m32, 9090 85 bytes

m,c,v;f(char*s){for(m=v=s;m&&v=s;v&&(c=*s++);)index("aeiou",c)&&printf("shm",m=0v=0);puts(m?v?:--s);} 

Try it online!Try it online!

C (gcc) with -m32, 90 bytes

m,c,v;f(char*s){for(m=v=s;m&&(c=*s++);)index("aeiou",c)&&printf("shm",m=0);puts(m?v:--s);} 

Try it online!

C (gcc) with -m32, 90 85 bytes

c,v;f(char*s){for(v=s;v&&(c=*s++);)index("aeiou",c)&&printf("shm",v=0);puts(v?:--s);} 

Try it online!

Source Link
ErikF
  • 4.8k
  • 9
  • 11
Loading