Skip to content

Latest commit

 

History

History
110 lines (81 loc) · 2.24 KB

README.en.md

File metadata and controls

110 lines (81 loc) · 2.24 KB

acm-resolver

[中文文档]

Forked from hiho-resolver. Did some performance optimization, changed the color scheme and added a lot of documents.

It's used for visualizing the final hidden stage(aka frozen time) in the competitive programming contest.

Screenshot

screenshot

Quick Start

pnpm install
pnpm run start

Load Data

Enter a url address in the input box or paste the entire JSON content directly into the input box and click 「加载数据」.

Preview

To see the demo, you can click on 「加载示例数据」.

preview url:

Operation

Just keep pushing the right-arrow key.

DOMjudge

You can use XCPCIO/domjudge-utility to export the data in DOMjudge to the data format required by acm-resolver.

Configuration reference for dump:

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

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

exported_data:
  resolver_data: true

Then refer to Load Data to load the data in.

JSON Configuration Format

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

The format of the solution, the key can be arbitrary and the problem subscript starts from 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
    }
}

The format of the user, where the key is the id of the user, should be matched to the solution:

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