v1

latestOpenAPI 3.1.32026-07-17211827.8 KB
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"
    }
  ]
}