|
- #include <cstdio>
- #include <cstdlib>
- #include <algorithm>
- using namespace std;
- int getint()
- {
- int res = 0;
- char ch = getchar();
- while (ch < '0' || ch > '9')
- ch = getchar();
- while (ch >= '0' && ch <= '9')
- res = res * 10 + ch - '0', ch = getchar();
- return res;
- }
- int main()
- {
- freopen("input.txt", "r", stdin);
- freopen("output.txt", "w", stdout);
- // getchar 是从 stdin 读入的,必须用 freopen 加载输入文件
- int n = getint();
- int m = getint();
- printf("%d %d\n", n, m);
- }
复制代码 |
|