D30192 @ 2020-02-24 09:21:44
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n;
cin>>n;
string s;
cin>>s;
for(int i=0;i<s.size();i++){
if(s[i]+n<='z')
s[i]=s[i]+n;
if(s[i]+n>'z')
s[i]=s[i]+n-26;
}
cout<<s<<endl;
return 0;
}
by memsetst @ 2020-02-24 09:29:17
溢出了解一下:
66666
abcd
by 玛法姆特 @ 2020-03-07 10:16:32
ascii码溢出了