Skip to main content
deleted 3 characters in body
Source Link
betseg
  • 8.7k
  • 3
  • 28
  • 60

C, 219 213 206 179179 175 bytes

#define p putchar
#define q(a)for(;a strchr("aeiouy",*s);p(*s++));
f(s,c,h)char*s;{q(!)q()p(*s);c="pgt;p(c="pgt vkh jglmn bqrzd fwx s"[*s-98];h=s[strcspn98]);p(h=s[strcspn(s,"aeiouy")];p(c);p(h]);p(c);p(h);}

Try it online!Try it online!

C, 219 213 206 179 bytes

#define p putchar
#define q(a)for(;a strchr("aeiouy",*s);p(*s++));
f(s,c,h)char*s;{q(!)q()p(*s);c="pgt vkh jglmn bqrzd fwx s"[*s-98];h=s[strcspn(s,"aeiouy")];p(c);p(h);p(c);p(h);}

Try it online!

C, 219 213 206 179 175 bytes

#define p putchar
#define q(a)for(;a strchr("aeiouy",*s);p(*s++));
f(s,c,h)char*s;{q(!)q()p(*s);p(c="pgt vkh jglmn bqrzd fwx s"[*s-98]);p(h=s[strcspn(s,"aeiouy")]);p(c);p(h);}

Try it online!

deleted 34 characters in body
Source Link
betseg
  • 8.7k
  • 3
  • 28
  • 60

C, 219 213 206206 179 bytes

#define p putchar
#define q(a)for(;a strchr("aeiouy",*s);p(*s++));
f(s,c,h)char*s;{char*a="bcdfgkpstvz";qq(!)q()p(*s);c=strchr(a,*s);c="pgt vkh jglmn bqrzd fwx s"[*s-a;c=c>0?"pgtvkgbzdfs"[c]:*s;h=s[strcspn98];h=s[strcspn(s,"aeiouy")];p(c);p(h);p(c);p(h);}

Try it online!Try it online!

C, 219 213 206 bytes

#define p putchar
#define q(a)for(;a strchr("aeiouy",*s);p(*s++));
f(s,c,h)char*s;{char*a="bcdfgkpstvz";q(!)q()p(*s);c=strchr(a,*s)-a;c=c>0?"pgtvkgbzdfs"[c]:*s;h=s[strcspn(s,"aeiouy")];p(c);p(h);p(c);p(h);}

Try it online!

C, 219 213 206 179 bytes

#define p putchar
#define q(a)for(;a strchr("aeiouy",*s);p(*s++));
f(s,c,h)char*s;{q(!)q()p(*s);c="pgt vkh jglmn bqrzd fwx s"[*s-98];h=s[strcspn(s,"aeiouy")];p(c);p(h);p(c);p(h);}

Try it online!

added 8 characters in body
Source Link
betseg
  • 8.7k
  • 3
  • 28
  • 60

C, 219 213213 206 bytes

#define p putchar
#define q(a)for(;a strchr("aeiouy",*s);p(*s++));
f(s,c,h)char*s;{char*a="bcdfgkpstvzhjlmnqrwx";qchar*a="bcdfgkpstvz";q(!)q()p(*s);c="pgtvkgbzdfshjlmnqrwx"[strchr;c=strchr(a,*s)-a];h=s[strcspna;c=c>0?"pgtvkgbzdfs"[c]:*s;h=s[strcspn(s,"aeiouy")];p(c);p(h);p(c);p(h);}

Try it online!Try it online!

C, 219 213 bytes

#define p putchar
#define q(a)for(;a strchr("aeiouy",*s);p(*s++));
f(s,c,h)char*s;{char*a="bcdfgkpstvzhjlmnqrwx";q(!)q()p(*s);c="pgtvkgbzdfshjlmnqrwx"[strchr(a,*s)-a];h=s[strcspn(s,"aeiouy")];p(c);p(h);p(c);p(h);}

Try it online!

C, 219 213 206 bytes

#define p putchar
#define q(a)for(;a strchr("aeiouy",*s);p(*s++));
f(s,c,h)char*s;{char*a="bcdfgkpstvz";q(!)q()p(*s);c=strchr(a,*s)-a;c=c>0?"pgtvkgbzdfs"[c]:*s;h=s[strcspn(s,"aeiouy")];p(c);p(h);p(c);p(h);}

Try it online!

edited body
Source Link
betseg
  • 8.7k
  • 3
  • 28
  • 60
Loading
Source Link
betseg
  • 8.7k
  • 3
  • 28
  • 60
Loading