Overview
- Skill Key
- andyjjrt/nccuoj
- Author
- andyjjrt
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/andyjjrt/nccuoj
- Latest Commit SHA
- 8e926769d3ba04f8cd3bf46dfc424fd756bd0a99
Solve competitive programming problems on NCCUOJ (https://nccuoj.ebg.tw). Use when: solving OJ problems, reading problem statements, writing solutions in C/C++/Python, submitting code, checking submission results.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 nccuoj 技能。 若已安装,则直接安装 nccuoj 技能。
# NCCUOJ Problem Solving
Solve competitive programming problems on [NCCUOJ](https://nccuoj.ebg.tw), a QDU-based Online Judge for NCCU CS.
## When to Use
- Read a problem statement from NCCUOJ
- Write a solution for a specific problem
- Submit code and check results
- Debug a wrong answer or time limit exceeded
- Solve contest problems
## Directory Structure
All generated files are organized under `.nccuoj/` at the workspace root:
```
.nccuoj/
├── cookies.txt # Session cookies (auto-managed)
└── solution/
├── public/<problem_id>/ # Public problem solutions
│ ├── problem.md # Problem statement
│ └── solution.cpp / solution.py / ... # Solution code
└── contest/<contest_id>/<problem_id>/ # Contest problem solutions
├── problem.md
└── solution.cpp / solution.py / ...
```
**When writing solution code, always place files in the correct directory.** The scripts' `--save` flag and `get_solution_dir()` helper handle directory creation automatically.
## CSRF Token (Important)
All NCCUOJ API requests require a CSRF token. The provided scripts handle this automatically (via `GET /api/profile` on init). If making manual requests, see [./references/api.md](./references/api.md) for details.
## Scripts
Use these scripts to interact with NCCUOJ. They handle CSRF tokens and session management automatically.
| Script | Purpose |
|--------|--------|
| [get_problem.py](./scripts/get_problem.py) | Fetch problem statement as Markdown (supports `--username`/`--password`, `--contest`, `--raw`) |
| [submit.py](./scripts/submit.py) | Submit code (requires `--username` / `--password` CLI args) |
| [check_result.py](./scripts/check_result.py) | Check submission result, with optional `--poll` |
All scripts use only Python stdlib (no pip install needed).
Scripts are located in this skill's `./scripts/` directory. In the examples below, `$SCRIPTS` refers to...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.