---
title: "查看题目详情 (problem:read)"
method: GET
path: "/problem/{problem}"
tags: ["problem"]
---

# 查看题目详情 (problem:read)

`GET /problem/{problem}`

## Path parameters

- `problem` integer, required

## Response `200`

查询成功

- Problem
  - `id` integer
  - `title` string
  - `description` string, nullable — 题目描述
  - `input` string, nullable — 输入格式
  - `output` string, nullable — 输出格式
  - `example_input` string, nullable — 样例输入
  - `example_output` string, nullable — 样例输出
  - `data_range` string, nullable — 数据范围
  - `languages_accepted` SubmissionLanguage[] — 允许提交的语言
  - `allow_public_submissions` boolean — 是否允许公开代码

## Changes

- **2024-08-14** `aa6951cc6ba1` — 6 breaking
  - the response property `data_range` became nullable for the status `200`
  - the response property `description` became nullable for the status `200`
  - the response property `example_input` became nullable for the status `200`
  - the response property `example_output` became nullable for the status `200`
  - …2 more
- **2024-08-14** `31431aaf46d3` — 1 info
  - endpoint added
- **2024-08-12** `abf18f0fc1b3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/acmclassoj/apis/acmoj-api-v1/changes/problem/:problem/get.md)

---

[API](https://skmtc.dev/acmclassoj/apis/acmoj-api-v1.md) · [All operations](https://skmtc.dev/acmclassoj/apis/acmoj-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/acmclassoj/acmoj-api-v1/revisions/3255fcbd64fb/schema)
