problem

查看题目详情 (problem:read)

get/problem/{problem}

Path parameters

probleminteger required
Example:1000

题目编号

Response

查询成功

idinteger
titlestring
descriptionstring nullable

题目描述

inputstring nullable

输入格式

outputstring nullable

输出格式

example_inputstring nullable

样例输入

example_outputstring nullable

样例输出

data_rangestring nullable

数据范围

languages_acceptedSubmissionLanguage[]

允许提交的语言

allow_public_submissionsboolean

是否允许公开代码

Example response

{
  "id": 1000,
  "title": "A+B",
  "plan_summary": {
    "subtasks": [
      {
        "testpoints": [
          {
            "limits": {
              "time_msecs": 2233,
              "memory_bytes": 1048576,
              "file_count": -1,
              "file_size_bytes": 1048576
            }
          }
        ],
        "score": 10
      }
    ]
  },
  "attachments": [
    {
      "name": "handout.tar.gz",
      "url": "/OnlineJudge/api/v1/problem/1000/attachment/handout.tar.gz"
    }
  ]
}

Changes

Changed in 6 of the 11 revisions of this API.74

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

      response-optional-property-added

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

      response-optional-property-added

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

      response-optional-property-added

    • the response property data_range became nullable for the status 200

      response-property-became-nullable

    • the response property description became nullable for the status 200

      response-property-became-nullable

    • the response property example_input became nullable for the status 200

      response-property-became-nullable

    • the response property example_output became nullable for the status 200

      response-property-became-nullable

    • the response property input became nullable for the status 200

      response-property-became-nullable

    • the response property output 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