Curriculum
23 modules in prerequisite order, all within the IOI Syllabus and sized to the current level in Libya.
L1 · Sabratha
Foundations: C++, the STL, complexity and sorting, up to prefix sums.
- F14 weeks
C++ basics
I/O, variables, conditions, loops, functions, arrays, strings
- F21 week
Complexity
Big-O, 10⁸ operations per second, reading constraints, overflow
Requires: F1
- F32 weeks
STL
vector, pair, sort, set/map, stack/queue
Requires: F1
- F42 weeks
Brute force and simulation
Trying all cases, careful implementation
Requires: F1
- F52 weeks
Basic math
Divisibility, gcd and lcm, primes and sieve, modular arithmetic
Requires: F2
- F62 weeks
Sorting
Sorting as a tool, custom comparisons, counting
Requires: F3
- F73 weeks
Prefix sums
1D and 2D prefix sums, difference arrays
Requires: F2
L2 · Leptis
Algorithms: binary search, greedy and basic DP, up to BFS, DFS and Dijkstra.
- A12 weeks
Binary search
On sorted arrays and on the answer
Requires: F6
- A21 week
Two pointers
Sliding window
Requires: F7
- A32 weeks
Greedy
Exchange argument, scheduling, when greedy fails
Requires: F6
- A42 weeks
Recursion
Backtracking, subsets, permutations
Requires: F1
- A54 weeks
Basic DP
1D DP, coins, grid paths, LIS O(n²), LCS
Requires: A4
- A63 weeks
BFS and DFS
Graph representation, BFS, DFS, grids, connected components, unweighted shortest paths
Requires: F3
- A72 weeks
Dijkstra
Weighted shortest paths with a priority_queue
Requires: A6
- A81 week
IOI task formats
Function-signature graders, interactive, output-only, subtasks
Requires: F1
- A91 week
Stress testing
Brute + generator + comparison, systematic debugging
Requires: F4
L3 · Cyrene
Olympiad: DSU, segment trees, sparse tables, sqrt decomposition, knapsack and bitmask DP.
- O1
DSU
Union-find with path compression and union by size, connectivity queries
Requires: A6
- O2
Sparse table
Range minimum and maximum in O(1) per query
Requires: F7
- O3
Segment tree
Point update and range query (sum, min, max)
Requires: F7, A4
- O4
Sqrt decomposition
Blocks of size sqrt(n) for range queries and updates
Requires: F7
- O5
Knapsack DP
0/1 and unbounded knapsack, subset sum
Requires: A5
- O6
Bitmask DP
Subsets as masks, DP over subsets for small n
Requires: A5
- O7
IOI strategy
Mixed untagged problems, reading all three problems, harvesting subtasks, splitting 5 hours
Requires: A8