获取题目详情
nowcoder_get_problemFetches full details of a specific Nowcoder programming problem by ID, including statement, input/output format, examples, and limits.
Instructions
获取牛客网特定编程题目的完整描述,包括题面、输入输出格式、示例和限制。
Args:
problemId (string): 题目ID
response_format (string): 输出格式 - "markdown"(默认) 或 "json"
Returns: 题目详情,包含标题、时间/内存限制、题目描述
Examples:
获取题目: { "problemId": "1001" }
JSON格式: { "problemId": "1001", "response_format": "json" }
Error Handling:
题目不存在时返回错误提示
页面加载超时时返回超时提示
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| problemId | Yes | 题目ID,例如 '1001' | |
| response_format | No | 输出格式: 'markdown' 人类可读, 'json' 机器可解析 | markdown |