TanjilLazim's blog

By TanjilLazim, 5 months ago, In English

Hi everyone, I got tired of constantly switching between my editor, terminal, and input.txt while practicing competitive programming, so I built a small web judge for myself and decided to make it public:

**https://cpide.me**

CPIDE is a free in-browser competitive programming IDE and judge.

Features - Monaco Editor (the same editor used by VS Code) with themes, font ligatures, and optional Vim keybindings - Compile and run with Ctrl + R - AC / WA / TLE / RE / CE verdicts with runtime and peak memory per test - Codeforces-style output comparison (trailing whitespace ignored) - Wrong Answer shows the first difference, plus a full side-by-side diff of expected vs. your output - Multiple test cases, separate code and tests for every problem - Multiple files per problem — keep a helper header or brute.cpp next to your solution; the open tab is what runs - Code formatter (Shift+Alt+F, or format-on-save) - Built-in snippets (DSU, Fenwick, Dijkstra, sieve, binary exponentiation…) — and you can add your own with tabstops via Settings → My snippets - Custom starter template per language - Share button: sends your code + test cases as a single link — nothing is uploaded, everything travels inside the URL - Autosaves locally in your browser, with one-click backup export/import

Interactive console For interactive problems or just trying a program: press Ctrl+Shift+R and type input as your program asks for it, like a real terminal.

Contest Import This is the feature I originally built it for. - Codeforces: Use a bookmarklet once, then click it on any problem or contest page. It imports all problems, sample tests, and time limits. - AtCoder and CodeChef: Paste the contest URL. To import live contest problems, the bookmarklet will work perfectly. Each imported problem gets its own tab (A, B, C...), along with its own code for every language, sample tests, and the correct time limit.

Supported Languages - C++23 (GCC 14) - C - Python and PyPy 3 - Java - Kotlin - Ruby - Go - Rust - JavaScript - C#

Stress Testing - Stress testing finds the test your solution fails on — automatically — for when the judge won't show you the failing test (the classic "Wrong answer on test 8"). - You give it three programs: — Main — your solution (your editor code, taken automatically). - Generator — prints one small random test. It reads a seed from stdin so failing tests are reproducible; a template is pre-filled, you just adjust it to the problem's input format. - Brute force — a slow but obviously correct solution (brute force, full search, whatever — it only runs on tiny tests, so speed doesn't matter). - Press Start. CPIDE generates random tests and runs your solution against the brute force, comparing outputs until they differ. The moment they do, it stops and shows you the exact input, the correct answer, your wrong answer, and the seed — and one click adds it as a test case so you can debug against it immediately. It also catches your solution crashing (RE) or exceeding the time limit (TLE) on a generated test. - Generator and brute can be in any supported language, independent of your main solution. - Two ways it helps most: WA on a hidden test → write a brute force, tweak the generator, and get a small counterexample in seconds instead of guessing. Before submitting a risky/optimized solution → run it against a safe version on a few hundred random tests to be sure it's correct.

A few notes - The judge currently runs on free infrastructure, so submissions are processed few at a time. If you see "Server Busy," it simply means there's a queue—please try again in a few seconds. - No account is required.

It's still in beta, so I'm sure there are bugs I haven't found yet. I'd really appreciate any feedback, feature requests, or bug reports. If you'd like to try it: **https://cpide.me**

Full text and comments »

  • Vote: I like it
  • +32
  • Vote: I do not like it