Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

我去!怎么又是一道水题......太水了......

Posted by 201501060326 at 2016-03-01 18:30:07 on Problem 3981
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator