CodeforcesAPI客户端Skill codeforces-api-client

Codeforces API客户端技能是一个编程竞赛工具,用于与Codeforces平台API交互,实现竞赛数据获取、题目管理、提交查询、用户统计等功能。关键词:编程竞赛、算法题库、Codeforces API、竞赛数据、题目集、提交记录、用户排名、虚拟竞赛、技能分析、补题工作流。

其他 0 次安装 0 次浏览 更新于 2/23/2026

名称: codeforces-api-client 描述: 用于与Codeforces API交互,获取竞赛数据、题目集和提交记录 允许使用的工具:

  • WebFetch
  • Bash
  • Read
  • Write
  • Grep
  • Glob

Codeforces API客户端技能

目的

与Codeforces API接口交互,获取竞赛数据、题目集、提交记录和用户统计数据,用于编程竞赛工作流。

功能

  • 获取竞赛题目和元数据
  • 提交解决方案并获取判题结果
  • 访问用户排名和评分历史
  • 获取题解和题目标签
  • 虚拟竞赛管理
  • 获取最近提交和状态
  • 按标签和难度访问题目集

目标流程

  • codeforces竞赛
  • 进度跟踪
  • 技能差距分析
  • 补题工作流

集成

使用官方Codeforces API (https://codeforces.com/apiHelp),在需要时进行适当的速率限制和身份验证。

输入模式

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": ["getContestProblems", "getUserSubmissions", "getProblemset", "getStandings", "getUserRating"]
    },
    "contestId": { "type": "integer" },
    "handle": { "type": "string" },
    "tags": { "type": "array", "items": { "type": "string" } },
    "count": { "type": "integer", "default": 10 }
  },
  "required": ["action"]
}

输出模式

{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "data": { "type": "object" },
    "error": { "type": "string" }
  },
  "required": ["success"]
}

使用示例

{
  "action": "getContestProblems",
  "contestId": 1900
}