Skip to content

sei40kr/atcoder-tools

 
 

Repository files navigation

Build Status codecov PyPI

atcoder-tools

Python 3.5 で動作する AtCoder からサンプル入力をダウンロードしたりする際に便利なツールです。

このツールには次のような機能があります。

  • AtCoderへのログイン,入出力例データなどの抽出
  • 枝刈り探索による高精度・高速な入力解析 (ARC、ABC、AGCについては約9割ほど)
  • 解析結果を用いたテンプレートコードの自動生成(C++, Java)
    • 他言語対応のためのコントリビューション(≒中間形式からコードに変換する部分のPR)を募集中です!

How to install

pip3 install atcoder-tools

Demo

asciicast

Usage

重要: かつてパスワード入力なしでログインを実現するためにAccountInformation.pyにログイン情報を書き込むことを要求していましたが、セキュリティリスクが高すぎるため、セッション情報のみを保持する方針に切り替えました。 今後はできるだけ保持されているセッション情報を利用してAtCoderにアクセスし、必要に応じて再入力を要求します。 過去のユーザーの皆様にはAccountInformation.pyを削除して頂くようお願い申し上げます。

  • atcoder-tools gen {contest_id} コンテスト環境を用意するコマンド
  • atcoder-tools test カレント・ディレクトリ上に実行ファイルと入出力(in_*.txt, out_*.txt)がある状態で実行するとローカルテストを行う

atcoder-tools gen --helpatcoder-tools genの引数の詳細について確認することができます。

例:

$ atcoder-tools gen agc001
$ cd ~/atcoder-workspace/agc001/A
$ g++ main.cpp
$ atcoder-tools test

--without-login 引数を指定するとログインなしでデータをダウンロードできます(一般公開されているコンテストのみ)。

$ atcoder-tool gen  [contest_id] --without-login

Contribution

気軽にPRを送ってください。

Licence

MIT

Author

kyuridenamida (@kyuridenamida)

About

Convenient modules & tools for AtCoder users, written in Python 3.5

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 43.9%
  • HTML 28.0%
  • JavaScript 10.4%
  • TypeScript 6.6%
  • C++ 2.7%
  • C# 2.6%
  • Other 5.8%