Competitive Programming

Contests

USACO

The USA Computing Olympiad (USACO) is a prestigious programming competition for high school students in the United States. It consists of four divisions (Bronze, Silver, Gold, and Platinum) with contests held throughout the year. USACO provides excellent training problems and serves as a pathway to the International Olympiad in Informatics (IOI).

Visit USACO →

CCC

The Canadian Computing Competition (CCC) is Canada's premier programming contest for high school students, organized by the Centre for Education in Mathematics and Computing (CEMC). The competition features problems of varying difficulty levels and serves as a qualifier for the Canadian Computing Olympiad (CCO) and the International Olympiad in Informatics (IOI).

Visit CCC →

Codeforces contests

The rounds below were listed on November 30, 2026. Check Codeforces for the latest start times, registration, and virtual participation in past rounds.

December 2026 rounds

Start times in Pacific time

  • Kotlin Heroes: Practice 15
  • ICPC 2026 Online Challenge 2 powered by Huawei
  • Kotlin Heroes: Episode 15
  • Educational Codeforces Round 197 (Rated for Div. 2)

USACO study roadmap

Work through the foundations and division topics in order, using the linked modules for lessons and practice problems. The Guide organizes topics around past contests, and future contests can draw on topics from other levels.

Foundations

Language basics
Use variables, integer and string types, Boolean operators, branches, and loops in C++, Java, or Python. Know when a sum or product needs a wider integer type.
Input and state
Read tokens and whole lines, print exactly the requested output, and store state in arrays and grids. Break a solution into functions and write a base case for recursive calls.
Practice
Trace a short simulation by hand, then test single-element input, boundary indices, and repeated values.

USACO Guide · Foundations

Bronze

Complexity and simulation
Estimate the work from the largest input. Trace state changes in order and use dynamic arrays or pairs to represent objects.
Complete search
Enumerate candidate pairs, triples, subsets, and permutations when the search space fits. Use recursion to generate choices and undo state when backtracking.
Sorting, sets, and maps
Sort records to expose order, use a set for membership, and use a map for counts keyed by value.
Greedy and ad hoc reasoning
Check a greedy choice with an exchange argument or an invariant. Split awkward cases explicitly and compute axis-aligned rectangle overlaps by intersecting coordinate intervals.

USACO Guide · Bronze

Silver

Prefix sums
Build cumulative totals so static range sums take constant time after preprocessing. Extend the idea to rectangles with 2D inclusion-exclusion and to maximum subarrays with a running minimum prefix.
Searching and ordering
Use two pointers when both move monotonically, binary search for sorted lookups or monotone feasibility, and coordinate compression when relative order matters. Use heaps when the next minimum or maximum changes over time.
Graphs and trees
Build adjacency lists and use BFS or DFS for traversal, connected components, and flood fill. Track parents and depths in a rooted tree, and identify cycles and tails in a functional graph.
Greedy and bits
Choose a sort order that supports your greedy invariant. Use shifts and masks to test, set, or clear bits and represent small subsets.

USACO Guide · Silver

Gold

Dynamic programming
Define the state, transition, base cases, and evaluation order. Practice knapsack, grid paths, increasing subsequences, and DP over subsets, intervals, or digits.
Graph algorithms
Use BFS for unweighted paths and Dijkstra for nonnegative weights. Order DAG dependencies with topological sort. Use disjoint sets to maintain connectivity and to implement Kruskal’s minimum spanning tree algorithm.
Range data structures
Use Fenwick or segment trees for point updates and range queries, ordered sets for predecessor and successor queries, and stacks or sliding windows when elements can be removed in a predictable order.
Tree algorithms
Combine subtree states and reroot to compute answers for every possible root. Flatten subtrees with Euler order and connect lowest common ancestor queries to range minimum queries.
Math and search
Use divisibility, modular arithmetic, and combinatorial counting. Explore hashing, meet-in-the-middle, and searching unimodal functions when their assumptions match the problem.

USACO Guide · Gold

Platinum

Range queries
Compose lazy updates, walk a segment tree to find a boundary, use sparse trees for large coordinate domains, and combine sweep lines or square-root decomposition with range queries.
Tree decompositions
Use binary lifting for ancestor jumps, merge smaller sets into larger ones, and pick heavy-light or centroid decomposition based on the path queries you need. Explore virtual trees for queries on selected vertices.
Geometry and optimization
Use cross products for orientation, sweep events in sorted order, build convex hulls, and recognize when a DP transition reduces to querying lines with the convex hull trick.
Counting and DP acceleration
Apply inclusion-exclusion, matrix exponentiation for linear recurrences, bitsets, divide-and-conquer DP when optimal split points are monotone, and sum-over-subsets transforms.

USACO Guide · Platinum

Advanced study

Graphs and flow
Explore strongly connected components, bridges, Euler tours, negative-weight paths, maximum flow, minimum cut, and minimum-cost flow.
Data structures and optimization
Study persistent structures, treaps, wavelet trees, dynamic forests, and optimization techniques for convex transitions.
Strings, algebra, and counting
Explore KMP, Z matching, suffix arrays, FFT-based convolution, extended Euclid, XOR bases, and advanced DP techniques.

USACO Guide · Advanced study

CCC Junior and Senior preparation

Each level gives you three hours for five questions worth 15 points each. The CEMC’s question bands are approximate, and some problems award partial credit for subtasks. Use the input bounds to choose an approach for each subtask. CEMC contest outline

Junior

J1–J2 · Basic implementation
Translate a rule into arithmetic and conditions. Read input correctly, repeat simple operations, and check exact output formatting.
J3–J4 · Counting and simulation
Combine loops and conditions to track changing state. Practice frequency arrays, string scans, and small simulations with edge cases.
J5 · Efficient problem solving
Practice recursion and grids, then look for repeated work. A difference array can collect interval updates, and prefix sums can answer many queries after one preprocessing pass.

Senior

S1–S2 · Basic algorithms
Practice sorting, searching, counting, and modeling a problem with arithmetic or a simple data structure. Check the bounds before choosing integer types.
S3–S4 · Algorithm design
Look for a counting identity, a data structure that maintains the right state, or a proof that a greedy choice is safe. Compare runtime with each subtask’s constraints.
S5 · Olympiad-level problems
Practice combining techniques across topics. Start with a correct solution for restricted cases, then use it to test and refine an efficient solution.

Practice with past problems

  • 2026 J5 · Beams of Light. Compare simulating intervals directly with marking their boundaries and precomputing query answers. Junior commentary
  • 2026 S4 · Minecarts. Start with the no-spare-gems subtask and model the side track as a stack. Then compare the small and large input bounds before tackling arbitrary gem budgets. Senior problem set

CEMC past contestsCCC Online Grader

2026 Event Schedule

DateEventCompetition
Jan 9-12, 2026USACO First ContestUSACO
Jan 30 - Feb 2, 2026USACO Second ContestUSACO
Feb 12, 2026CCC Ordering DeadlineCCC
Feb 18, 2026CCC Contest (North & South America)CCC
Feb 19, 2026CCC Contest (Outside N/S America)CCC
Feb 20-23, 2026USACO Third ContestUSACO
Mar 28, 2026USACO US Open (Proctored)USACO
May 12-18, 2026EGOI (Italy)USACO
May 21-30, 2026USACO Training CampUSACO
Aug 9-16, 2026IOI (Uzbekistan)USACO

About My CP Journey

Competitive programming has been a passion of mine, combining algorithmic thinking with efficient problem-solving. I regularly participate in contests on various platforms and continuously work on improving my skills in algorithm design and optimization.

Languages

  • • C++
  • • Python
  • • Java

Strengths

  • • Dynamic Programming
  • • Graph Theory
  • • Data Structures
  • • Mathematical Algorithms