Coder Social home page Coder Social logo

duipai's Introduction

对拍 duipai

本项目目标是创建一个方便的 windows 下对拍环境.
The goal of this project is to create a convenient environment for match under windows.

部署 Deployment

仅限于 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.

使用 Use

准备 Preparation

将要验证的代码,正确的代码和数据生成器分别命名为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).

运行 Run

双击duipai.bat,过程中会出现某些运行信息(不懂就问https://translate.google.cn/).
Double-click .duipai.bat, some operating information will appear during the process.

查看结果 View Results

如果编译成功而要结束运行请按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 the i point is named as testdatai.in/out/ans.

TODO

  • 增加查看运行时间功能.

  • 更好看的输出界面.

License

This project is licensed under the terms of the WTFPL license.
license:wtfpl

duipai's People

Contributors

konjacq avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.