Kyleshao @ 2023-01-13 16:17:54
源代码:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n;
cin>>n;
string s;
cin>>s;
for (int i=0;i<=s.length()-1;i++)
{
s[i]=char((int(s[i])+n)%26);
}
cout<<s<<endl;
}
by Katz @ 2023-01-13 16:18:39
仔细看题
by Myeve @ 2023-01-18 14:38:01
取模那步怪怪的