希望更丰富的展现?使用[Markdown](https://www.luogu.org/wiki/show?name=%E5%B8%AE%E5%8A%A9%EF%BC%9Amarkdown)
by Kuriyama_Mirai @ 2019-02-01 11:07:37
上面的代码看不清,请看这个
#include<iostream>
#include<iomanip>
#include<math.h>
#include<cstring>
#include<string>
#include<fstream>
#include<sstream>
#include<algorithm>
using namespace std;
int main() {
int n;
char ch[] = { 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' };
string s;
cin >> n;
cin.ignore();
getline(cin, s);
for (int i = 0;i < s.size();i++) {
int num = s[i] - 'a' + n;
cout << ch[num % 26];
}
return 0;
}
by Polaris_blig @ 2019-02-01 11:09:37
希望更丰富的展现?使用Markdown
by Doveqise @ 2019-02-01 11:13:29
```latex
\color {gray}{\text{希望更丰富的展现?使用LaTeX}}
```
by juruojjl_ @ 2019-02-01 11:27:13
## **希望更丰富的展现?[使用Markdown](https://www.luogu.org/wiki/show?name=%E5%B8%AE%E5%8A%A9%EF%BC%9Amarkdown)**
by Happynewyear @ 2019-02-08 11:18:54
## **希望更丰富的展现?[使用Markdown](https://www.luogu.org/wiki/show?name=%E5%B8%AE%E5%8A%A9%EF%BC%9Amarkdown)**
by hnyqwq @ 2019-02-08 11:19:45
```cpp
#include<iostream>
#include<iomanip>
#include<math.h>
#include<cstring>
#include<string>
#include<fstream>
#include<sstream>
#include<algorithm>
using namespace std;
int main()
{
int n;
char ch[] = { 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' };
string s;
cin >> n;
cin.ignore();
getline(cin, s);
for (int i = 0;i < s.size();i++)
{
int num = s[i] - 'a' + n;
cout << ch[num % 26];
}
return 0;
}
```
by hnyqwq @ 2019-02-08 11:20:47
这样的对吧,,,
by hnyqwq @ 2019-02-08 11:20:56