5 条题解

  • 2
    @ 2023-7-17 19:39:02
    #include <iostream>
    #include <cstdio>
    #include<string>
    using namespace std;
    int main(){
        string str;
        getline(cin,str);
        for(int i=0;i<str.length();i++){
            if(str[i]>='a'&&str[i]<='u'){
                str[i]+=5;
            }else if(str[i]>='v'&&str[i]<='z')
    		{
    			if(str[i]=='v')str[i]='a';
    			if(str[i]=='w')str[i]='b';
    			if(str[i]=='x')str[i]='c';
    			if(str[i]=='y')str[i]='d';
    			if(str[i]=='z')str[i]='e';
    		}
        }
        cout<<str;
        return 0;
    }
    

    c++

    信息

    ID
    75
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    1032
    已通过
    442
    上传者