Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] suggest adding arguments when running custom judge #62

Open
panda2134 opened this issue May 24, 2018 · 2 comments
Open

[Enhancement] suggest adding arguments when running custom judge #62

panda2134 opened this issue May 24, 2018 · 2 comments

Comments

@panda2134
Copy link

maybe like this:

./check <Input_File> <Output_File> <Answer_File> [<Result_File> [-appes]],

By doing so, it will be easier to use famous special judge libs, e.g. testlib.h.

@iceboy233
Copy link
Member

The current interface is through file descriptors instead of filenames, where:

stdin (0): input from user program output, aka. "Output_File"
stdout (1): judge output, aka. "Result_File"
stderr (2): judge side output (for debug/error messages)
extra (3): input from user program input, aka. "Input_File"

Using file descriptors has the benefit that files don't need to have names, thus increases the variety of implementation. In case of judging files, one could open the input, output and result file, and dup to file descriptor 0, 3 and 1.

As of Answer_File, it was designed for judge itself to handle it. The judge could either compute in parallel, integrate answer in source file, or read a data file. We could supplement argument and file support for that.

@undefined-moe
Copy link
Member

I want to give stdout files for judge.
Calculating ans every time will take lots of extra CPU time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants