The problem data (Test case generator, judge's solution, task, ...) of Library Checker
Source code of https://judge.yosupo.jp. You can get test cases of problems from this repository.
cd /path/to/library-checker-problems
pip3 install -r requirements.txt
# or pip3 install colorlog
ulimit -s unlimited # for linux (doesn't need for OS X and WSL)
./generate.py -p unionfind # generate testcases of unionfind
# or ./generate.py datastructure/unionfind/info.toml
ls datastructure/unionfind/in/ # testcases of unionfind
ls datastructure/unionfind/out/ # solutions of unionfind
file datastructure/unionfind/checker # binary of output checker
./generate.py -p unionfind --dev # developer mode
./generate.py -p unionfind --test # test mode (for developer, exec this command before PR)
./generate.py $(find . -name "info.toml" -not -path "./test/*") # generate all testcases
We are welcome any issues and PRs! Except minor change (e.g. add test cases, fix statements), please create an issue first.
不具合(テストケースが弱い, ジャッジが異常な挙動をする, 問題文にtypoを発見, などなど)を発見したとき、報告していただけるととっても助かります。
基本的には上に書いたようにissueを立ててもらえると助かります。 熱意がある人はCONTRIBUTING を参考にPull requestを送っていただけるととても助かります。
競プロerは必ずしもgithubに慣れているとは限らず、issue / pull request を送ったことがない人も少なくはないというのを理解しています。どれだけめちゃくちゃなものを送ってきても怒ったりこのリポジトリが壊れたりすることはないので、githubの練習がてら挑戦してみるというのもアリです(頑張ってサポートします)。
We use testlib for verifier(input-checker) and output-checker. We use toml as toml paser.