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

# 查看题目详情

`GET /problem/{problem}`

## Path parameters

- `problem` integer, required

## Response `200`

查询成功

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

## Changes

- **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/31431aaf46d3/schema)
