Crates.io | ahc-evaluation |
lib.rs | ahc-evaluation |
version | 0.1.1 |
source | src |
created_at | 2024-04-11 10:08:42.105112 |
updated_at | 2024-04-11 10:41:48.842228 |
description | Evaluates the submission code for AHC (AtCoder Heuristic Contest). |
homepage | |
repository | https://github.com/atcoder8/ahc-evaluation |
max_upload_size | |
id | 1204687 |
size | 46,656 |
Evaluates the submission code for AHC (AtCoder Heuristic Contest).
This program automates:
Install from crates.io using the following command.
cargo install ahc-evaluation
Evaluates the submission code for AHC (AtCoder Heuristic Contest).
Usage: ahc-evaluation [OPTIONS]
Options:
-c, --config <CONFIG> Path of the configuration file [default: evaluation/config.toml]
-h, --help Print help
-V, --version Print version
Place the configuration file evaluation/config.toml
under the current directory. You can also specify the path to the configuration file with the option --config
.
An example of a configuration file is as follows. Keys cannot be changed, but value must be changed as necessary.
[thread]
# Number of threads used for evaluation.
# If not specified, it is automatically determined by Rayon.
thread_num = 8
[path]
# Path of the seed list file.
seed_file = "tools/seeds.txt"
# Path of the directory of input files.
input_dir = "tools/in"
# Path of the directory of output files.
output_dir = "evaluation/out"
# Path of the file that outputs a list summarizing the score and execution time for each seed.
evaluation_record = "evaluation/summary.csv"
[command]
# Build command for submission code.
# Specify an empty array if build execution is not required.
build.submission = ["cargo", "build", "--release"]
# Build command for local tester.
# Specify an empty array if build execution is not required.
build.tester = []
# Execution command for submission code.
execute.submission = ["submission/target/release/submission"]
# Execution command for local tester.
# The following placeholders can be used (Placeholders must be quoted independently).
# - `{input}`: The path of the input file corresponding to the seed.
# - `{output}`: The path of the output file corresponding to the seed.
# - `{cmd}`: Execution command of the submission code.
execute.tester = ["tools/tester", "{input}", "{output}"]
# Set this flag to `true` if the submission code is to be executed via the local tester rather than independently.
execute.integrated = false