XYZLT @ 2023-09-22 23:40:38
#include<bits/stdc++.h>
using namespace std;
char s[233];
int main()
{
int n,x;
cin>>x;
cin>>s;
n=strlen(s);
for(int i=0;i<=n-1;i++)
{
if(s[i]=='z') s[i]='a';
else s[i]+=x;
}
for(int i=0;i<=n-1;i++)
{
cout<<s[i];
}
return 0;
}
by Ivancliff @ 2023-09-27 18:32:48
应该用string