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**

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

»
5 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Keep the good work! It's smooth, cool and good!

»
5 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I loved it! super cool!!!

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

bookmark feature is very very cool,maybe add support for custom templates(this might require log in?)

also,I personally prefer using console over text io for interactive problems so I'd love the option to do that if possible(something like onlinegdb)

also add pypy3 ig,and sortedcontainers support for python

if all this is done,I would really switch over and make this my main. still,it looks really good so far,great job and good luck!

  • »
    »
    4 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Thanks a lot for the detailed feedback! The easy ones are already done: custom templates are live — write your template in the editor, then Template → "Save current code as my template". No login needed now, it saves in your browser. you can use your custom template in the same browser. sortedcontainers is live too. pypy3 and interactive console are little harder to implement. but i'll keep my work. hopefully within a few days they will be live too. would love to hear how the updated templates feel.

    • »
      »
      »
      4 months ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      Bookmark feature seems to be bugged out for atcoder :(,also I think it would we better if we had the option to close tabs problem by problem instead of closing everything at once,also the != and >= seem a little weird but I guess thats a choice

      • »
        »
        »
        »
        4 months ago, hide # ^ |
         
        Vote: I like it 0 Vote: I do not like it

        thanks a lot for your feedback. its not actually a bug. the bookmark feature is mainly implemented for the codeforce contests. you can import the problems of other platforms such as atcoder and codechef just by adding the link. i'm giving you an example 'https://atcoder.jp/contests/awtf2026algo/tasks'(remember it should be the tasks page) then it will import all the problems. but now the bookmark will also work for atcoder. if for some reason it fails, the link option will work as a gurantee, and rest of the things have also been added perfectly. you can find it in the settings.

        • »
          »
          »
          »
          »
          4 months ago, hide # ^ |
          ← Rev. 2  
          Vote: I like it 0 Vote: I do not like it

          yess adding the link works perfectly,I think the bookmark thing is failing on atcoder because it thinks the input format is also a testcase,

          and can u add the option to turn off accept suggestion on enter, I would prefer just accept suggestion on tab and the option to stop runninig the code after u run it,this saves a lot of time when you run an infinite loop by mistake and are waiting for it to stop

          also you should join errichto's discord server,I think its getting cluttered to speak here.great job on the website so far.

          • »
            »
            »
            »
            »
            »
            4 months ago, hide # ^ |
             
            Vote: I like it 0 Vote: I do not like it

            updated. I'm also in errichto's discord server, but i'd really appreciate it if you could leave any feedback here as well. It'll help others to see what's been improved so far.

        • »
          »
          »
          »
          »
          4 months ago, hide # ^ |
           
          Vote: I like it 0 Vote: I do not like it

          is parsing sample test like competitive companion possible for your app?

          bookmark and atcode link is fine but if you can do competitive companion thing, it will be even better and more convenient. but it is already good enough, just a dreamer feature.

          • »
            »
            »
            »
            »
            »
            4 months ago, hide # ^ |
             
            Vote: I like it 0 Vote: I do not like it

            unfortunately companion support on cpide.me is impossible by companion's design, not CPIDE's. competitive companion only POSTs parsed problems to a fixed list of localhost ports. no custom urls, no remote hosts. a web page can't listen on ports, so there is no way for cpide.me to receive its pushes. nothing we build server-side can change that. but a good thing is our platform will now work perfectly to import live contest problems.

»
4 months ago, hide # |
← Rev. 2  
Vote: I like it 0 Vote: I do not like it

This tool combines so many amazing must have features all in one. very nice.

Is it possible to change the sides on left block(for writing codes) and right block(for viewing test cases)? I used to writing code on the right sides while yours are on the left sides.

  • »
    »
    4 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    thanks a lot for your feedback. its live now. you can change it in settings (gear icon) → "Editor position" → Right. It remembers your choice.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I think this tool should be go-to editor for everyone since you no longer suffer the pain customizing your IDE for almost all the must features.

BTW, can you guarantee this tool will be running for a long time so that people will not restart building his IDE back again if it is shut down in the future.

Or will you open source it so that people can build it from scratch locally in their pc if one day for whatever reason it is shutdonw?

  • »
    »
    4 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    thanks a lot for your feedback. I'm really glad that you like it. I definitely plan to keep improving and maintaining it for the long term. While I can't guarantee what will happen many years down the road, i have no plans to shut it down. i'm actively adding new features and fixing issues based on user feedback. As for open-sourcing it, i don't have any plans for that at the moment. My focus right now is on continuing to improve the platform and make it as useful as possible.

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

do you have plans to add multi file support?

»
4 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

quite useful, i must say, well done

»
4 months ago, hide # |
← Rev. 2  
Vote: I like it 0 Vote: I do not like it

is it possible to choose NO code completion for advanced vscode mode? it is sometimes annoying when I press enter, some code completion is instead choosen...

also better if you can add code formatter on the IDE, after finish code writting you can do like in vscode "ctrl+s" for polish your code format before submitting to the OJ.

  • »
    »
    4 months ago, hide # ^ |
    ← Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    the code completion feature has actually already been added. open Settings → "Enter accepts suggestion" and turn it off. after that enter always inserts a newline and completions are only accepted with tab, exactly like the vs code acceptSuggestionOnEnter: off setting. i'm currently implementing the code formatter. hopefully I'll have it ready soon. Update: Its been added successfully.

»
4 months ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

WOW. It is very smooth compared to other online compilers. I think I found my new favorite. Thank you.

»
17 minutes ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The offline application is just amazing!