2 条题解

  • 0
    @ 2024-1-17 14:26:40
    #include<iostream>
    using namespace std;
    int main() {
    	string s,s1="";
    	getline(cin,s);
    	for(int i=s.length()-1;i>=0;i--)
    	    s1+=s[i];
    	for(int i=0;i<s1.length();i++){
    		if(isalpha(s1[i])){
    			if(s1[i]>='w' and s[i]<='z' or s1[i]>='W' and s1[i]<='Z')
    			    cout<<char(s1[i]+4-26);
    			else
    			    cout<<char(s1[i]+4);
    		}else
    		    cout<<s1[i];
    	}
    	return 0;
    }
    

    等级考试C++17级_小蓝的通信秘密

    信息

    ID
    1122
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    (无)
    递交数
    19
    已通过
    12
    上传者