Stage II syllabus
At stage II (oblast) the problems come in two sets: one for the junior league (grades 6–7) and one for the senior league (grades 8–11). Each round has seven problems, and each league solves five of them. Problems A, C and E are shared by both leagues.
| Problem | What it needs | Junior | Senior |
|---|---|---|---|
| A | Topics for problems A–D | yes | yes |
| B | Topics for problems A–D | yes | no |
| C | Topics for problems A–D | yes | yes |
| D | Topics for problems A–D | yes | no |
| E | Topics for problem E and everything from problems A–D | yes | yes |
| F | Topics for problem F and everything from the problems above | no | yes |
| G | Topics for problem G and everything from the problems above | no | yes |
Problems A–D
- Basic control structures: sequence, branching, loops, functions and procedures.
- Integer arithmetic: operations on integers, division with rounding, the digits of a number, number bases.
- Units of measurement: distance, mass, money, time, speed and the like; the calendar (leap years), time as hh:mm:ss.
- Simple maths: percentages, proportions, linear equations, systems of linear equations, linear inequalities, integer geometry, area and perimeter of basic shapes (rectangle, triangle and so on), Cartesian coordinates, sequences, progressions.
- Arrays and strings: indexing; a linear pass — maximum, minimum, sum, elements with a given property, linear search and so on; finding subarrays and substrings; quadratic sorting algorithms; two-dimensional arrays (a table, a grid).
- Simple data structures: queue, stack, set, associative array.
- Simulation: carrying out, step by step, a process the statement describes.
Problem E
The topics of problems A–D, and also:
- Integer arithmetic: 64-bit integers, overflow.
- Arrays and strings: linear-time sorting (counting sort), fast sorting algorithms, sorting with a custom comparator (pairs, structures), two pointers, 1D dynamic programming, greedy algorithms, prefix sums (including two-dimensional ones), difference arrays.
- Maths: Euclid’s algorithm, GCD and LCM; primes — primality testing, prime factorisation, the sieve of Eratosthenes.
- Recursion.
- Exhaustive search: all subsets, all permutations, backtracking.
- Binary search: in a sorted array and on the answer.
Problem F
The topics of the problems above, and also:
- Data structures: heap (priority queue), deque, monotonic stack, sliding window minimum, segment tree, Fenwick tree, sparse table.
- Graph theory: depth-first search (DFS), breadth-first search (BFS), including on a grid, 0-1 BFS, topological sorting, checking whether a graph is bipartite, Dijkstra’s algorithm, the Floyd–Warshall algorithm, disjoint set union (DSU), Kruskal’s algorithm (minimum spanning tree), lowest common ancestor (binary lifting), bridges and articulation points.
- Maths: modular arithmetic, binary exponentiation, the extended Euclidean algorithm, Euler’s totient function, Fermat’s little theorem, matrices (multiplication, fast exponentiation), probability (with integers), games — winning and losing positions.
- Strings: prefix function, Z-function, trie.
- Dynamic programming: two-dimensional (knapsack, longest common subsequence), on trees, over subsets (bitmasks).
- Other algorithms: bitwise operations, bitmasks, divide and conquer, sweep line, coordinate compression, hashing and hash tables.
Problem G
The topics of the problems above, and also:
- Data structures: segment tree with range updates (lazy propagation), treap, dynamic segment tree, square-root decomposition, persistent data structures.
- Graph theory: Eulerian path, strongly connected components, centroid decomposition, heavy-light decomposition.
- Other algorithms: bitsets, suffix array, ternary search.
What will not appear
These topics will not come up at stage II:
- 2-SAT;
- binomial coefficients modulo a number and combinatorics formulas (simple counting, such as the number of pairs, may still be needed);
- the Bellman–Ford algorithm and graphs with negative weights;
- the Bron–Kerbosch algorithm;
- the Aho–Corasick algorithm;
- Mo’s algorithm;
- geometry with real numbers;
- Kuhn’s algorithm;
- Manacher’s algorithm;
- dynamic programming optimisations (convex hull trick, divide and conquer optimisation);
- network flows;
- suffix automaton;
- the Sprague–Grundy function, Nim;
- the fast Fourier transform (FFT);
- link-cut tree.
For stage I, see the Stage I syllabus. For how to prepare more broadly, see How to prepare.
