标签:
you are what you do
we are what we do
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; int main(){ char a[1005]; while(gets(a)){ int len=strlen(a); int i; for(i=0;i<len-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<len;i++){ if(a[i]!=‘*‘){ printf("%c",a[i]); } } printf("\n"); } return 0; }
标签:
原文地址:http://www.cnblogs.com/TWS-YIFEI/p/5873073.html