Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions CONFIG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# 設定

設定に必須な情報はcontest_dir, source_file_path, need_to_compile, execute_command,
(language_id または language_name)です.
設定に必須な情報はcontest_dir, source_file_path, need_to_compile, execute_commandです.

| 項目 | 説明 |
| --- | --- |
| contest_dir | ac-ninjaを実行するディレクトリです.<br> {{contesty_type}},{{contest_id}}を特定できる必要があります. |
| source_file_path | ac-ninjaで提出するファイルのパスです. |
| source_file_path | ソースファイルのパスです. |
| need_to_compile | プログラムの実行にコンパイルが必要かどうかを指定します.<br> trueの場合, {{compile_command}}を指定する必要があります. |
| execute_command | プログラムを実行するためのコマンドです. |
| language_id | ac-ninjaでの提出に用いる言語のidです.<br> AtCoderの提出セレクトボックスをディベロッパーツールから見ることで<br> 確認できますが, [早見表](./LANG_ID.md)が便利です. |
| language_name | language_idの代わりに, language_nameを指定することができます.<br> AtCoderの提出言語セレクトボックスの表示の通りに指定してください.<br> \"C++(GCC 9.2.1)\", \"Python (3.8.2)\", \"Rust (1.42.0)\"など.<br> こちらも, [早見表](./LANG_ID.md)の文字列をコピペすると便利です. |

ファイルパスや, 実行コマンドには{{変数}}を含むことができます.

Expand Down Expand Up @@ -38,7 +35,6 @@ output_file_path = "{{contest_dir}}/a.out"
source_file_path = "{{contest_dir}}/{{problem_id}}.cpp"
compile_command = "g++ {{source_file_path}} -std=c++17 -o {{output_file_path}}"
execute_command = "{{output_file_path}}"
language_id = 5001 # language_nameの場合 "C++ 20 (gcc 12.2)"
```

以下はPythonでの設定例です
Expand All @@ -49,6 +45,4 @@ need_to_compile = false
contest_dir = "{{work_space}}/{{CONTEST_TYPE}}/{{contest_id_0_pad}}"
source_file_path = "{{contest_dir}}/{{problem_id}}/main.py"
execute_command = "python3 {{source_file_path}}"
language_name = "Python (CPython 3.11.4)" # language_idの場合 5055
```

185 changes: 3 additions & 182 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ regex = "1.7.1"
clap = { version = "4.1.8", features = ["derive"] }
reqwest = { version = "0.11.14", features = ["cookies", "json"] }
dialoguer = "0.10.3"
indicatif = "0.17.3"
chrono = "0.4.23"
time = "0.3.36"
Loading