曹南Eason @ 2018-10-26 21:48:34
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,c,i;
string a;
cin>>n>>a;
while(n>=26) n-=26;
for(i=0;i<a.length();i++)
{
a[i]+=n;
if(a[i]>'z') a[i]-=26;
cout<<a[i];
}
return 0;
}
by 曹南Eason @ 2018-10-26 21:49:16
数据大了会出中文
by 只用函数 @ 2018-10-26 21:49:48
这不就是凯撒密码吗?
by 灵光一闪 @ 2018-10-29 18:25:38
同病相怜
by yubing_lml @ 2019-08-11 11:05:06
请问问题解决了吗