You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
2 years ago
|
## $CSP-J2$ 现场考试一定要注意的事项
|
||
|
|
||
|
### 一、需要上来先打一个空模板,测试一下万能头是否可用
|
||
|
|
||
|
```c++
|
||
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
int main() {
|
||
|
//文件输入
|
||
|
freopen("Candy.in", "r", stdin);
|
||
|
|
||
|
//文件输出
|
||
|
freopen("Candy.out", "w", stdout);
|
||
|
return 0;
|
||
|
}
|
||
|
```
|
||
|
|
||
|
* 其它几题复制使用
|
||
|
* 如果题目不是按以前练习的在开发环境中完成编码后,复制到页面提交的形式,而是要求 <font color='red' size=4><b>
|
||
|
* 读取 $xx.in$
|
||
|
* 提交 $xx.out$</b></font>
|
||
|
则需要按下面的样子完成编码,上面的代码需要同学们背诵,否则挂零。
|
||
|
|
||
|
|
||
|
### 二、如果无法使用万能头文件
|
||
|
```c++
|
||
|
#include <cstdio>
|
||
|
#include <cstring>
|
||
|
#include <iostream>
|
||
|
#include <algorithm>
|
||
|
//如果需要队列
|
||
|
//#include <queue>
|
||
|
|
||
|
//如果需要Hash表
|
||
|
//#include <unordered_map>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
//文件输入
|
||
|
freopen("Candy.in", "r", stdin);
|
||
|
|
||
|
//文件输出
|
||
|
freopen("Candy.out", "w", stdout);
|
||
|
return 0;
|
||
|
}
|
||
|
```
|
||
|
|