Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an internal method LibraryCheckerProblem.download_checker_cpp() #624

Merged
merged 2 commits into from
Nov 30, 2019

Conversation

kmyk
Copy link
Member

@kmyk kmyk commented Nov 30, 2019

judge.yosupo.jp は常に checker.cpp を用いた special judge 形式になっています (online-judge-tools/verification-helper#1 (comment)) が、この checker.cpp を取得できるようにします。
オプションとか別コマンドとかを作るとなると仕様を検討したくなってしまう (「yukicoder も special judge がありますが……」など) ので、とりあえず内部メソッドだけにしておきます。

たとえば python3 -c 'import onlinejudge, sys ; sys.stdout.buffer.write(onlinejudge.dispatch.problem_from_url("https://judge.yosupo.jp/problem/unionfind").download_checker_cpp())' などとします。


Copy link
Contributor

@kawacchu kawacchu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

テストはありませんが、よさそうなので、マージします。
型ヒントの追加、ありがとうございます。

@kawacchu kawacchu merged commit df3f370 into master Nov 30, 2019
kmyk added a commit that referenced this pull request Nov 30, 2019
@kmyk kmyk deleted the feature/special-yosupo branch January 21, 2020 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants