Run your JavaScript solution against unlimited custom test cases in a sandboxed Web Worker. Get AC/WA/TLE/RE verdicts and per-case run times.
The slow part of a contest is not writing the solution, it is pasting input into a terminal 12 times. The Offline Judge Test Runner keeps every test case beside your code, executes all of them against a real time limit, and reports a verdict per case in the notation judges use: AC, WA, TLE and RE.
Code runs inside a Web Worker rather than on the page. That is what makes a genuine time limit possible: an infinite loop is terminated by killing the worker, where the same loop on the main thread would freeze the tab and take your test cases with it.
Two execution modes are offered. One expects a solve(input)function returning the answer, and the other gives you readLine() and print() for a stream-shaped solution. Nothing is compiled and nothing is uploaded; the language is JavaScript and it executes locally.
No solve() found — define function solve(input) and return the answer.--- and split input from expected output with ===, which turns a problem statement's sample block into cases in one paste.Runs in a sandboxed Web Worker — no network, no DOM, nothing leaves this tab. An infinite loop is killed at the time limit instead of freezing the page.
Not run yet.
Not run yet.
Not run yet.
Not run yet.