Skip to content

ICPC系列竞赛通用滚榜程序/Competitive Programming Rank Visualizer/Rank Resolver

License

Notifications You must be signed in to change notification settings

lixin-wei/acm-resolver

 
 

Repository files navigation

acm-resolver

[English Document]

本项目 fork 自 hiho-resolver,用于 ACM 系列竞赛的滚榜。 相比原项目,主要优化了动画效率,更改了界面配色,并丰富了文档。

Screenshot

screenshot

Quick Start

pnpm install
pnpm run start

Load Data

在输入框中输入一个 url 地址,或者直接将整个 JSON 的内容粘贴在输入框中,然后点击「加载数据」。

Preview

如果想看看效果,可以点击「加载示例数据」。

预览地址:

Operation

不停按方向键右即可。

DOMjudge

可以使用 XCPCIO/domjudge-utility 将 DOMjudge 中的数据导出成 acm-resolver 所需要的数据格式。

dump 的配置参考:

base_url: "https://localhost/domjudge/"
userpwd: "username:password"

cid: 1
saved_dir: "./output/1"

exported_data:
  resolver_data: true

然后参考 Load Data 将数据加载进去。

JSON Configuration Format

{
    "contest_name": "your contest name",
    "problem_count": 13,
    "frozen_seconds": 3600,
    "solutions": {},
    "users": {}
}

solution 的格式,key 可以任意,problem 下标从 1 开始:

{
    "381503": {
        "user_id": "1",
        "problem_index": "1",
        "verdict": "AC",
        "submitted_seconds": 22
    },
    "381504": {
        "user_id": "2",
        "problem_index": "1",
        "verdict": "WA",
        "submitted_seconds": 23
    }
}

user 的格式,其中 key 即为 user 的 id,要和 solution 中对上:

{
    "1": {
        "name": "花落人亡两不知",
        "college": "HZNU",
        "is_exclude": true
    },
    "2": {
        "name": "大斌丶凸(♯`∧´)凸",
        "college": "HDU",
        "is_exclude": false
    },
    "3": {
        "name": "天才少女队",
        "college": "PKU",
        "is_exclude": true
    }
}

About

ICPC系列竞赛通用滚榜程序/Competitive Programming Rank Visualizer/Rank Resolver

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.4%
  • HTML 1.1%
  • CSS 0.5%