Support Aizu Online Judgement submit#174
Open
byplayer wants to merge 6 commits intoonline-judge-tools:masterfrom
Open
Support Aizu Online Judgement submit#174byplayer wants to merge 6 commits intoonline-judge-tools:masterfrom
byplayer wants to merge 6 commits intoonline-judge-tools:masterfrom
Conversation
Add ability to submit code solutions to Aizu Online Judge problems. # Why is this change needed? This feature enables users to submit their code solutions directly to AOJ through the API, complementing the existing login functionality added in the previous commit. # How does it address the issue? - Implemented submit_code method in AOJProblem class that POSTs to https://judgeapi.u-aizu.ac.jp/submissions with problemId, language, and sourceCode - Created AOJSubmission class to represent submissions with UUID-based tokens returned by the API - Added download_problem method to retrieve problem details from submission data - Registered AOJSubmission in the dispatch system for URL routing
get_available_languages was not implemented therefore I implement it. This function is necessary for submit feature.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aizu Online Judgement の submit のサポートになります。
API v1.0.1 を使って認証とsubmitを実装しました。