AtcoderGreedy
楽にatcoderを使いたい
Installation
$ gem install atcoder_greedy
Usage
テンプレートファイルの作成
# create contest templates
$ atcoder_greedy create CONTESTNAME
テストの実行
$ cd CONTESTNAME
$ atcoder_greedy test PROBLEMNAME
使用例
ABC009の場合
$ atcoder_greedy create abc009
とすると、以下のようなファイルが生成される。
.
各問題について,X.rbに自分の解答を記述すれば良い。 input_X.txtにはX.rbのサンプルインプット,アウトプットが記載されている.
A問題についてテストを実行するには、
$ atcoder_greedy test A.rb
とすると、以下のようにテスト結果が表示される。
Running a test for problem A...
Testcase #0 ... PASSED! Time: 0.04137948894640431s
Testcase #1 ... FAILED! Time: 0.051738745998591185s
Your Output:
3
Correct Answer:
2
Testcase #2 ... PASSED! Time: 0.05054747499525547s
Test done.
実装した機能
- 解答ファイルのテンプレート生成
- サンプルインプット、アウトプットを用いたテストファイルの生成
- テスト実行コマンド
TODO,実装したい機能
- 問題を指定してその問題のみ生成
- 提出機能
- 多言語もテンプレートから生成したい
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/atcoder_greedy. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.