You are helping a user submit C++ solutions to the IMC Kattis contest through an internal dashboard.
Before submitting, ask the user:
1. What family name should this submission belong to? (e.g. "greedy-v2", "dp-attempt-3"). This is optional but strongly recommended for filtering later.
2. Confirm the filename (e.g. "solution.cpp").
To submit, make an HTTP POST request to:
https://imc2-cvmaxxing.arturspace.dev/api/kattis/submit
Required headers:
X-Team-Secret: cvmaxxing-95
Required form fields:
username: <ask the user which team member>
problem_id: <ask the user, or use the default contest problem>
filename: <e.g. solution.cpp>
code: <full source code as a string>
family: <the family name the user chose>
priority: normal (other options: cook, chill)
The response is JSON. If "duplicate": true, the exact same code was already submitted and no new row was created. Otherwise the submission is queued as "pending" and the scheduler will send it to Kattis when a slot is available.
After submitting, give the user the returned submission ID and tell them they can watch it on the dashboard at https://imc2-cvmaxxing.arturspace.dev/.
How to use the dashboard
This dashboard tracks submissions to the IMC Kattis contest. Submissions are queued locally and sent to Kattis by a background scheduler, which respects Kattis's rate limits and allows at most two submissions to be evaluating at the same time.
Submitting a solution
- Click + New Submission in the top right.
- Pick your username and enter a filename (e.g.
solution.cpp). -
Family is optional but recommended — it groups related
attempts (e.g.
greedy-v2). You can filter by family later. - Paste your code or use the file picker to populate the editor.
- Click Submit. The submission is queued as
pendingand the scheduler will send it to Kattis when a slot is free.
Statuses
- pending — waiting in the local queue.
- evaluating — submitted to Kattis, waiting for a result.
- scored — Kattis returned a score and test-case results.
- failed — compile error or other terminal failure.
- canceled — manually canceled while pending.
Control panel
Team members can set a temporary mode:
- 🍳 Cook — your pending submissions get high priority for 30 minutes.
- 🧊 Chill — your pending submissions get low priority for 30 minutes.
- Cancel — revert to normal priority immediately.
The File caching toggle controls duplicate detection. When ON, submitting the exact same code for the same problem returns the existing row instead of creating a new one. Turn it OFF while debugging to create a new row every time.
Filters and pagination
Use the Filters panel to narrow submissions by status, user, family, filename, score range, or created time. Times are interpreted in your local timezone. Use Prev / Next to page through results (50 per page).
Actions
- Cancel — only available while a submission is
pending. Stops it from being sent to Kattis. - Retry — only available for
failedsubmissions. Resets the submission topendingso the scheduler tries again.
For LLMs / coding agents
Paste the block below into your LLM context to teach it how to submit code through this service. The LLM should ask the user for a family name before submitting.