problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
luogu::P1914类 参考

洛谷 P1914 小书童——凯撒密码 更多...

#include <luogu.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 

详细描述

洛谷 P1914 小书童——凯撒密码

在文件 luogu.h503 行定义.

成员函数说明

◆ main()

int luogu::P1914::main ( istream &  cin,
ostream &  cout 
)
static

在文件 luogu.cpp1825 行定义.

1825 {
1826 string str;
1827 int n;
1828 cin >> n >> str;
1829 for(const char ch: str) {
1830 cout << static_cast<char>((ch - 'a' + n) % 26 + 'a');
1831 }
1832 return 0;
1833 }

被这些函数引用 luogu::TEST().


该类的文档由以下文件生成: