题目类型:字符串
题目来源:https://www.luogu.org/problemnew/show/P1914
水题,随便看看
代码
//
// Created by Leo Lee on 2019/6/13.
//
#include <iostream>
#include <string>
using namespace std;
int N;
string code;
void fun();
int main(){
cin>>N;
cin>>code;
fun();
cout<<code;
return 0;
}
void fun(){
for(int i = 0;i<code.size();i++){
code[i] = char((code[i]+N-97)%26+97);
}
}