An open lab for competitive programmers

Train like thetop 1%.

A focused workspace for competitive programming: a Monaco-powered IDE, real Codeforces & CSES judging, a Gemini AI mentor that guides instead of spoiling, a structured roadmap, and 20+ interactive algorithm visualizers.

C++·Python·Java·Rust·Go
#include <bits/stdc++.h>
using namespace std;

// Compute prefix sums for O(1) range sum queries
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int n, q;
    if (!(cin >> n >> q)) return 0;

    vector<long long> pref(n + 1, 0);
    for (int i = 1; i <= n; ++i) {
        long long x; cin >> x;
        pref[i] = pref[i - 1] + x;
    }

    while (q--) {
        int l, r; cin >> l >> r;
        cout << (pref[r] - pref[l - 1]) << "\n";
    }
    return 0;
}
Live Execution ConsoleWandbox Judge
$ g++ -O3 -std=c++20 solution.cpp
$ ./solution < sample.in
Click Run Code to compile and execute this algorithm on the remote sandboxed judge in real time.
Pólya Socratic Mentor
Hint 1/3
Step 1: Understand the Constraints

Notice that N, Q <= 200,000. A naive range sum takes O(N) per query, leading to O(N * Q) = 4 * 10^10 operations — Time Limit Exceeded.

Open in Full IDE →
1,170+
Problems
5
Languages
20+
Visualizers
CF · CSES
Online judges
Gemini
AI mentor
EN · RU
Interface

Built for real training, not interview prep

Every part of the platform exists to shorten the loop between reading a problem and understanding why your solution works.

A real competitive IDE

Monaco editor with syntax highlighting and five languages — C++, Python, Java, Rust and Go — plus your own code templates. Run against the samples in a single keystroke.

An AI mentor that won't spoil

A Gemini-powered mentor built on Pólya's method. It diagnoses your thinking and gives graduated hints — the next step, never the whole solution.

Real judging, not mocks

Submit straight to Codeforces and CSES through the platform, or get an instant verdict checked against the sample tests. Status and verdicts stream back live.

A structured roadmap

Follow a staged syllabus from fundamentals to advanced DP and graphs, with readable articles and curated problems linked to every topic.

20+ interactive visualizers

Watch Dijkstra, segment trees, DSU, sorting and more run step by step, so the algorithm becomes intuition instead of memorized code.

Progress you can see

A GitHub-style activity heatmap, verdict analytics, streaks and full submission history keep your weak spots and momentum in plain view.

20+

See the algorithm, not just the code

Over twenty hand-built visualizers animate the data structures and techniques that show up again and again in contests.

SortingBinary SearchTwo PointersSliding WindowPrefix SumsSegment TreeDSU / Union–FindHeapBSTDijkstraGraph TraversalMax FlowConvex HullKnapsack DPSieveString MatchingBitwiseGCD / Euclidand more
Interactive TeaserO(log N) Search

Binary Search Visualizer

Click any number to target it:Target = 57

Binary search divides the search space in half at every step: O(log N).

All 22 Visualizers

From problem to intuition in four steps

01

Pick a path

Start from the roadmap or jump into a problem matched to your current skill level.

02

Solve in the IDE

Write, run against samples, and submit — to Codeforces, CSES, or the instant judge.

03

Get unstuck, not spoiled

Ask the AI mentor for the next hint, or replay the relevant visualizer until it clicks.

04

Track your growth

Watch your heatmap fill in and your verdict analytics sharpen over time.

AI Mentor

Hints that build intuition

The mentor follows a hint ladder: a diagnostic question first, a stronger nudge only if you're still stuck, and a full walkthrough only when you ask for it.

  • Pinpoints where your reasoning breaks down
  • Reviews your code — idea, correctness, complexity, edge cases
  • Reveals the full solution only when you explicitly ask
AI Mentor
Get unstuck, not spoiled?
Your O(n) idea is right. Before you code the range queries, what could you precompute so each query becomes O(1)?

Also included

Spoiler protection

Hide tags and difficulty to recreate real contest conditions.

Adaptive recommendations

A skill-axis matching engine suggests problems at the edge of your ability.

Graph editor & whiteboard

Sketch graphs and reason visually without leaving the browser.

Bilingual interface

Use the entire platform in English or Russian.

Start training today.

Free to start. No credit card required.