竞赛
考级
#include<iostream> #include<cstring> using namespace std; int main(){ int n; char a[110]={}; cin>>n>>a; for(int i=0;i<strlen(a);i++){ if(a[i]+n%26>'z'){ a[i]-=26-n%26; } else{ a[i]+=n%26; } } cout<<a<<endl; return 0; }
小桂子Guinevere