#include "stdio.h" #include "string.h" #include "ctype.h" #include "math.h" int main() { int t,n,x,i,j,cnt,m,k; char a[100]; while(gets(a)!=NULL) { for(i=0;i<strlen(a)-2;i++) { if(a[i]=='y'&&a[i+1]=='o'&&a[i+2]=='u') { a[i]='w'; a[i+1]='e'; a[i+2]='#'; } } for(i=0;i<strlen(a);i++) { if(a[i]!='#') printf("%c",a[i]); } } return 0; } |
Double click to view unformatted code.