Subscribe Us

Responsive Advertisement

Advertisement

1480A codeforces solution in cpp

 

1480A codeforces solution in cpp

by ujjal roy



#include<bits/stdc++.h>

using namespace std;

main()

{


    int t,i;

    cin>>t;

    while(t--)

    {

        string s;

        cin>>s;

        for(i=0;i<s.size();i++)

        {

            if(i%2==0)

            {

                if(s[i]=='a') s[i]='b';

                else s[i]='a';

            }

            else

            {

                if(s[i]=='z') s[i]='y';

                else s[i]='z';

            }


        }


            cout<<s<<endl;

    }


    return 0;

}


Post a Comment

0 Comments