View Code of Problem 3496

#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <iostream>
#include <bits/stdc++.h>
int main()
{
    char s[10000];
    while(gets(s))
    {
        int n=strlen(s);
        for(int i=0;i<n;++i)
        {
            if(s[i]=='y'&&s[i+1]=='o'&&s[i+2]=='u')
            {
                printf("we");
                i+=2;
            }
            else
            {
                printf("%c",s[i]);
            }
        }
        printf("\n");

    }


}

/*
F:\temp\21670710.97697\Main.cc:6:25: error: bits/stdc++.h: No such file or directory
*/

Double click to view unformatted code.


Back to problem 3496