| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
我去!怎么又是一道水题......太水了......#include <stdio.h>
#include <string.h>
int main()
{
int i,ans;
char s[2000];
while(gets(s)!=NULL)
{
for(i=0,ans=0; i<strlen(s); i++)
{
if(s[i]=='y'&&s[i+1]=='o'&&s[i+2]=='u')
{
printf("we");
i+=2;
}
else
printf("%c",s[i]);
}
printf("\n");
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator