本项目目标是创建一个方便的 windows 下对拍环境.
The goal of this project is to create a convenient environment for match under windows.
仅限于 windows 系统.请确保已正确配置 gcc 且支持 c++11 及以上版本.
Only for windows system. Please make sure that gcc is configured correctly and supports c++11 and above.
请将整个文件夹放在任何方便的地方:)
Please put the entire folder wherever convenient.
将要验证的代码,正确的代码和数据生成器分别命名为test.cpp
,right.cpp
,mk_data.cpp
并放在source
文件夹下.
The code to be verified, the correct code and the data generator are respectively named test.cpp
, right.cpp
, mk_data.cpp
and placed in the source
folder.
random.h
提供了随机数模板setseed(int)
用于确定种子,缺省参数时自动生成;random(int,int)
返回一个[L,R)内的整数.
random.h
provides a random number template setseed(int)
to determine the seed, which is automatically generated when the default parameters are; random(int,int)
returns an integer within (L,R).
双击duipai.bat
,过程中会出现某些运行信息(不懂就问https://translate.google.cn/).
Double-click .duipai.bat
, some operating information will appear during the process.
如果编译成功而要结束运行请按Ctrl+C
或者关掉控制台.
If the compilation is successful and you want to end the operation, press Ctrl+C
or close the console.
- 如果编译错误,可以在
compinfo.txt
中找到编译信息. - 否则可以在
testlog.txt
中找到错误信息,包括:- 错误点编号;
- 对应保存的数据点编号.
- 错误数据保存在
testdata
目录下,第i
个点命名为testdatai.in/out/ans
. - If the compilation is wrong, you can find the compilation information in
compinfo.txt
. - Otherwise, you can find error messages in
testlog.txt
, including:- Error point number;
- Corresponding to the saved data point number.
- The error data is saved in the
testdata
directory, and thei
point is named astestdatai.in/out/ans
.
-
增加查看运行时间功能.
-
更好看的输出界面.
This project is licensed under the terms of the WTFPL license.
license:wtfpl