problemset

查询评测状态 (problemset:read)

get/problemset/{problemset}

Path parameters

problemsetinteger required
Example:42

比赛或作业编号

Response

查询成功

idinteger
namestring
descriptionstring
allowed_languagesSubmissionLanguage[]

计入分数的语言

start_timestring date-time
end_timestring date-time
late_submission_deadlinestring date-time nullable

null 表示不允许迟交

type'contest' | 'homework' | 'exam'
urlstring
join_urlstring nullable
quit_urlstring nullable
html_urlstring

Example response

{
  "id": 42,
  "course": {
    "id": 42,
    "tag": {
      "id": 42
    },
    "term": {
      "id": 42
    },
    "url": "/OnlineJudge/api/v1/course/42",
    "join_url": "/OnlineJudge/api/v1/course/42/join",
    "quit_url": "/OnlineJudge/api/v1/course/42/quit",
    "html_url": "/OnlineJudge/course/42"
  },
  "problems": [
    {
      "id": 1000,
      "title": "A+B",
      "url": "/OnlineJudge/api/v1/problem/42",
      "submit_url": "/OnlineJudge/api/v1/problem/42/submit",
      "html_url": "/OnlineJudge/problem/42"
    }
  ],
  "url": "/OnlineJudge/api/v1/problemset/42",
  "join_url": "/OnlineJudge/api/v1/problemset/42/join",
  "quit_url": "/OnlineJudge/api/v1/problemset/42/quit",
  "html_url": "/OnlineJudge/problemset/42"
}

Changes

Changed in 4 of the 11 revisions of this API.112

    • added the optional property late_submission_deadline to the response with the 200 status

      response-optional-property-added

    • the response property course/join_url became nullable for the status 200

      response-property-became-nullable

    • the response property course/quit_url became nullable for the status 200

      response-property-became-nullable

    • the response property course/tag became nullable for the status 200

      response-property-became-nullable

    • the response property course/term became nullable for the status 200

      response-property-became-nullable

    • the response property join_url became nullable for the status 200

      response-property-became-nullable

    • the response property problems/items/html_url became nullable for the status 200

      response-property-became-nullable

    • the response property problems/items/submit_url became nullable for the status 200

      response-property-became-nullable

    • the response property problems/items/title became nullable for the status 200

      response-property-became-nullable

    • the response property problems/items/url became nullable for the status 200

      response-property-became-nullable

    • the response property quit_url became nullable for the status 200

      response-property-became-nullable

    • endpoint added

      endpoint-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 17 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog