tangyayan @ 2016-12-01 21:40:40
#include<cstdio>
#include<iostream>
#include<cstring>
using namespace std;
char c[110000];
int main()
{
int n;
scanf("%d",&n);
cin>>c+1;int len=strlen(c+1);
for(int i=1;i<=len;i++)
{
if(n!=0)
{
if(c[i]!='z')c[i]+=n;
else{c[i]='a';c[i]+=(n-1);}
}
else continue;
}
puts(c+1);
return 0;
}
by jiangzhewen @ 2016-12-08 12:25:39
煞笔