获取题解
nowcoder_get_problem_solutionsRetrieve community-written solutions for a specific Nowcoder programming problem by problem ID, with pagination and optional Markdown or JSON output for review or analysis.
Instructions
获取牛客网特定题目的社区题解列表。
Args:
problemId (string): 题目ID
page (number): 页码
response_format (string): 输出格式 - "markdown"(默认) 或 "json"
Returns: 题解列表,包含作者、标题、摘要、点赞数
Examples:
获取题解: { "problemId": "1001", "page": 1 }
JSON格式: { "problemId": "1001", "response_format": "json" }
Error Handling:
题目无题解时返回空结果提示
页面加载超时时返回超时提示
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 页码,从1开始 | |
| problemId | Yes | 题目ID | |
| response_format | No | 输出格式: 'markdown' 人类可读, 'json' 机器可解析 | markdown |