木守球 @ 2018-08-14 17:08:36
using namespace std;
int main() {
string a; int j;
cin >> j; cin.get();
getline(cin,a);
j = j % 26;
for (auto &i : a)if (isalpha(i))i = (i+j-97)%26+97;
cout << a;
return 0;
}
by CYJian @ 2018-08-14 17:15:19
发两遍可还行??
by Jameswood @ 2018-08-14 17:39:10
include<iostream>
include<string>
using namespace std;
int main() {
string a; int j;
cin >> j; cin.get();
getline(cin,a);
j = j % 26;
for (auto &i : a)if (isalpha(i))i = (i+j-97)%26+97;
cout << a;
return 0;
}
by Jameswood @ 2018-08-14 17:39:33
论markdown的正确使用方法
by 木守球 @ 2018-08-14 18:42:47
@暮雪﹃紛紛 第一次没弄好格式,这个也删不了贴诶