GET /api/result/{id}
Response
Section titled “Response”{ "id": "550e8400-e29b-41d4-a716-446655440000", "status": "completed", "verdict": "AC", "exit_code": 0, "stdout": "hello world\n", "stderr": "", "cpu_time": 0.015, "wall_time": 0.052, "memory_peak": 8400000}Status lifecycle
Section titled “Status lifecycle”pending → running → completed → error| Status | Meaning |
|---|---|
pending | Queued, waiting for a worker |
running | Executing in a sandbox |
completed | Finished (check verdict for the outcome) |
error | Internal failure (sandbox setup, timeout, etc.) |
Verdicts
Section titled “Verdicts”| Code | Name | What happened |
|---|---|---|
AC | Accepted | Clean exit, code 0 |
RE | Runtime Error | Non-zero exit or crash |
TLE | Time Limit | CPU or wall time exceeded |
MLE | Memory Limit | OOM killed by cgroup |
SIG | Signaled | Killed by signal (not attributed to judge) |
IE | Internal Error | Sandbox infrastructure failed |
SV | Security Violation | Sandbox escape attempt detected |
Not found
Section titled “Not found”HTTP 404{ "error": "submission not found" }