Skip to content

A single file, simple helper to show the difference between output of programs. (Also known as "对拍")

License

Notifications You must be signed in to change notification settings

BoYanZh/Online-Diff-Helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Diff Helper

A single file, simple helper to show the difference between output of programs. (Also known as "对拍")

Usage

Due to the use of /tmp and the default shell called by subprocess, the script only runs on linux.

pip3 install -r requirements.txt
flask run --host=0.0.0.0 --port=80

Then you can access https://localhost:80/login/letmelogin to get your access for the website.

Features and Guidance

  1. Access <YOUR_DOMAIN>/problems to see the problem list.
  2. Access <YOUR_DOMAIN>/problems/<problemName> to create a new problem named as <problemName>.
  3. Access <YOUR_DOMAIN>/problems/<problemName>/remove to remove a existing problem.
  4. Generator files: The codes in the Code text box will be compiled to a binary file, which is used to generate data for the program. The first line of its stdout will be treated as command line arguments. The rest of them will be the stdin for all the solvers.
  5. Statics files: Files which will not be compiled immediately. There should be a Makefile in it. After uploading the solver zip, all the static files will be placed with files in the solver zip and make will be run. The a.out (if exists) will be treated as the solver binary. Therefore, do not use -o in the default option of Makefile.
  6. Solver files: Files which will be compiled with static files after uploaded using make command. Uploaded codes will be wiped once the compilation in finished. No need to worry about leaking your codes to others.
  7. After uploading multiple solvers, click Run.

Statement

We are not responsible for any usage of this code violating the Honor Code in UMJI-SJTU.

About

A single file, simple helper to show the difference between output of programs. (Also known as "对拍")

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages