1 条题解

  • 1
    @ 2023-8-19 14:41:24
    #include<iostream>
    #include<algorithm>
    using namespace std;
    int main(){	 //C++17级 字符替换
    	string s;
    	cin>>s;
    	for(int i=0;i<s.length();i++){
    		if(s[i]=='z') cout<<'a';
    		else cout<<char(s[i]+1);
    	} 
    	return 0;
    }
    
    • 1

    信息

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