xydengke @ 2023-07-19 12:39:58
using namespace std;
int main(){
int n,j;
cin>>n;
char ssh[1000];
cin>>ssh;
for(int i=0;i<=strlen(ssh)-1;i++){
if(ssh[i]+n<=122){
cout<<char(ssh[i]+n);
}
else {j=ssh[i]+n-122;
cout<<char(97+j);}
}
return 0;
}
by xydengke @ 2023-07-19 14:33:53
此帖已结 谢谢各位大佬