Skip to content

Conversation

@byplayer
Copy link

Aizu Online Judgement の submit のサポートになります。
API v1.0.1 を使って認証とsubmitを実装しました。

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.
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.

1 participant