automation cli tools for AtCoder
Project description
atcoder_helper
atcoder出場を手助けするCLIツールです。
install
pip install atcoder-helper
PyPI: https://pypi.org/project/atcoder-helper/
使い方
最初の初期化
atcoder_helper config init
コマンドにより、 $HOME/.atcoder_helper
以下に設定ファイルが作成されます。
準備
問題を解くディレクトリの中で以下の準備をします。
ディレクトリの作成・初期化
atcoder_helper task create <コンテスト名> <問題名>
コマンドを実行し、ディレクトリを作成して初期化します。
たとえば、ABC160のA問題であれば atcoder_helper abc160 a
のようにコマンドを打ちます。
このコマンドにより、問題を解くための雛型が生成されます。また、ビルドコマンド・実行コマンド、問題などの情報を記したタスク設定ファイル.atcoder_helper_task_config.yaml
が生成されます。
テストケースの取得
作成されたディレクトリに移動し、atcoder_helper fetch
コマンドを実行します。
取得したテストケースはtestcases.yamlに保存されます。
問題を解いているとき
atcoder_helper exec
で以下のような実行結果を得ることができます。
tips
- testcases.yamlのtestcaseにexpectedを指定しないテストケースを作成すると、そのケースはJUSTSHOW扱いになり、正答との比較はスキップされ、出力結果の表示だけが行われます。
- 新規にディレクトリを作成せず、その場のディレクトリを初期化する atcoder_helper task init コマンドも存在します。
- その場合、 task configファイルを自分で設定するか、あるいは
atcoder_helper fetch --contest <contest> --task <task>
のようにすることで、特定の問題のテストケースを取得できます。
- その場合、 task configファイルを自分で設定するか、あるいは
- 現在、古い時代のコンテストに対応していないことを把握しています。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
atcoder_helper-0.0.3.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for atcoder_helper-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5085b77431cfc61fe7f888a58b97d24c2bc172c459c1fd7ed114931447e6cefc |
|
MD5 | ddb830a4d8e55a9b36bcc21c76d2ffc6 |
|
BLAKE2b-256 | 5f9c54bf82fb0572499d7cd578ceca448b2fac4a5f6b9ec9e724edb1c7b01ac2 |