double_cm @ 2018-09-29 22:28:23
using namespace std; int n; char data[60]= {},ch; int main () { scanf ("%d%s",&n,data); for (int i=0; i<strlen(data); i++) ch=(data[i]-'a'+n)%26+'a',cout<<ch; return 0; }
by double_cm @ 2018-09-29 22:28:59
谁帮忙看一下啊这个怎么样
by sjttsts @ 2018-09-29 22:29:55
希望更丰富的展现?使用Markdown
by double_cm @ 2019-11-14 17:23:21
#include<bits/stdc++.h>
using namespace std; int n; char data[60]= {},ch; int main () { scanf ("%d%s",&n,data); for (int i=0; i<strlen(data); i++) ch=(data[i]-'a'+n)%26+'a',cout<<ch; return 0; }
using namespace std; int n; char data[60]= {},ch; int main () { scanf ("%d%s",&n,data); for (int i=0; i<strlen(data); i++) ch=(data[i]-'a'+n)%26+'a',cout<<ch; return 0; }