1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#include <stdio.h> #include <string.h> int main() { char s[1000]; int i,n; while(gets(s)) { n=strlen(s); for(i=0;i<n;i++) if(s[i]=='y') if(s[i+1]=='o') if(s[i+2]=='u') { s[i]='w'; s[i+1]='e'; for(int j=i+2;j<n;j++) s[j]=s[j+1]; } printf("%sn",s); } return 0; } |