@[wangxinyu521](/user/1065958) 题目是右移n位
by sdyzpf @ 2023-12-08 20:19:29
```cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n=0;
string a;
cin>>n>>a;
int length=a.size();
while(n--)
{
for(int i=0;i<length;++i){
if(a[i]=='z')
{
a[i]='a';
}
else a[i]+=1;
}
}
cout<<a;
return 0;
}
```
稍作修改就行了(最近好多求助这题的)
@[wangxinyu521](/user/1065958)
by sdyzpf @ 2023-12-08 20:20:52
谢谢您,好人一生平安【磕头】
by wangxinyu520 @ 2023-12-08 20:34:05