Skip to main content

Olympiads and competitions

Coding Olympiad Guide: How School Students Prepare for the IOI and Informatics Olympiads

A coding olympiad, also called an informatics olympiad, is a competition where school students solve hard problems by designing an algorithm and writing a program that solves them correctly and quickly. The best known is the International Olympiad in Informatics (IOI), which brings together top secondary school programmers from many countries.

11 min readGrades 6–12 · Intermediate to advancedUpdated By the Codinzy curriculum team

Illustration of an algorithm tree with a highlighted path to the answer, next to a trophy and medal
Illustration: Codinzy

Students do not enter the IOI directly. Each country chooses its team through its own national olympiad, and the selection steps differ from country to country.

This guide explains how olympiads work, what skills they test, which languages to use, and a realistic preparation plan for students in grades 6–12, with advice for parents on supporting a long and rewarding journey.

Key takeaways

  • Informatics olympiads test problem solving with algorithms, not knowledge of a particular app or framework.
  • The IOI is the international final; students reach it through their country's national olympiad, whose rules differ by country.
  • C++ is the standard olympiad language; Python is a fine way to learn the ideas first.
  • Preparation takes months to years: solid coding basics, then algorithms, then lots of timed practice.
  • Steady habits matter more than talent: regular practice, reading solutions and reviewing mistakes.

What is a coding olympiad?

A coding olympiad is a contest in algorithmic problem solving. Each problem is a short story with a precise task, for example finding the shortest route through a city, or the best way to pack items into boxes. The student must work out a method (an algorithm), then write a program that reads the input and prints the correct answer.

Solutions are usually checked automatically. The program is run on many hidden test cases, and it must give the right answer within strict time and memory limits. A solution that is correct but too slow can lose most of its points, which is what makes olympiads different from ordinary coding exercises.

Many olympiads give partial credit. A problem may be split into subtasks, smaller or simpler versions of the problem, each worth some points. A student who cannot solve the full problem can still score by solving the easier subtasks well.

Olympiads reward creative and careful thinking. They are closer to a maths olympiad than to building an app: the main tools are logic, mathematics and a clear plan.

What is the International Olympiad in Informatics (IOI)?

The International Olympiad in Informatics is one of the international science olympiads for secondary school students. It was first held in 1989 and now takes place every year, hosted by a different country each time. Each participating country can send a small national team of up to four students.

At the IOI, contestants work alone on algorithmic problems over two competition days, writing programs that are graded automatically. Medals are awarded based on scores. Beyond the contest, the IOI is also a meeting place for young programmers from around the world.

The official website, ioinformatics.org, publishes the rules, past problems and results. Past IOI problems are a valuable, if very challenging, resource once a student is well into their preparation.

How national informatics olympiads and team selection work

Every route to the IOI goes through a national olympiad. Each country runs its own competition, usually organised by a university, a computing society or a national olympiad committee, and uses it to choose its IOI team.

The details differ a lot, but a common pattern looks like this:

  1. An open first round, often online or at school, that many students can enter.
  2. One or more harder rounds for the top scorers.
  3. A national final or training camp for the strongest students.
  4. Team selection, where the best few are chosen to represent the country at the IOI.

Some countries use online contests with levels that students climb through over time. Others run a single exam followed by a camp. Age limits, school-year rules, registration dates and allowed languages all vary.

The practical step for families is to find your country's informatics olympiad, read its rules and note its dates. A school computer science teacher is often a good first person to ask. If your country has no national olympiad, students can still practise with past problems and take part in open online contests to build their skills.

What skills do coding olympiads test?

Olympiads test a mix of programming fluency, algorithms and mathematical thinking. A rough map of the skills, from first steps to advanced:

### Programming foundations - Variables, loops, conditions, functions and arrays, used quickly and without errors. - Reading input and printing output in exactly the required format. - Debugging and testing your own code with tricky cases.

### Core algorithms and data structures - Sorting and searching, including binary search. - Recursion and brute force (trying every possibility, then making it faster). - Greedy methods and prefix sums. - Stacks, queues, sets and maps. - Graphs: breadth-first and depth-first search, shortest paths. - Dynamic programming, a key olympiad topic.

### Maths and reasoning - Counting and combinatorics, number theory basics and logic. - Estimating how fast an algorithm runs (time complexity), to know whether it will finish within the time limit.

Nobody learns all of this at once. Strong olympiad students build these skills layer by layer over years.

Try a free live class

A real tutor checks your child's level and shows them what to learn next. Online, 1-on-1 or in a small group.

Book my free class

Free · No payment details

C++ or Python: which language for coding olympiads?

C++ is the standard language for informatics olympiads. It runs very fast, its standard library includes ready-made data structures and algorithms, and it is the main language at the IOI. Most serious olympiad students move to C++ for competition work.

Python is a good place to learn the ideas. It is easier to read and write, so younger students can focus on thinking about algorithms rather than syntax. Many national first rounds and online contests accept Python. Its main drawback is speed: a Python solution can be too slow for the hardest problems even when the idea is right.

A sensible route for many students:

  1. Learn programming basics in Python, or in Scratch first for younger children (see Python for kids).
  2. Start solving simple algorithm problems in Python.
  3. Switch to C++ once loops, functions and arrays feel natural, usually before the harder rounds.

Here is a tiny olympiad-style task in Python: read some numbers and print the largest one, without using the built-in max function.

python
n = int(input())
numbers = list(map(int, input().split()))
best = numbers[0]
for x in numbers:
    if x > best:
        best = x
print(best)

Real olympiad problems are much harder, but they follow the same pattern: exact input, exact output and a method that is both correct and fast.

A step-by-step preparation plan

Olympiad preparation is a marathon. This plan assumes a motivated student in grades 6–12 and can be stretched or shortened to fit.

  1. Build coding fluency (first few months). Get comfortable with one language. Write lots of small programs until loops, conditions, functions and lists feel easy.
  2. Learn the first algorithms. Sorting, searching, brute force, simple recursion and prefix sums. Solve many easy problems from past national first rounds.
  3. Move to C++. Learn the input and output, vectors, sorting and the standard library containers you need.
  4. Study core topics in order. Greedy methods, binary search, graphs (BFS and DFS), then dynamic programming. Spend real time on each one before moving on.
  5. Practise past papers. Work through your country's past olympiad problems, then past regional and IOI problems as you improve.
  6. Take timed contests. Enter online contests regularly to practise under time pressure and get used to reading problems quickly.
  7. Review and repeat. After every contest, solve the problems you missed by reading the official solutions, then write the code yourself.
Road map of seven olympiad preparation steps, from coding fluency to timed contests and review
The seven preparation steps, from first programs to contest day. Illustration: Codinzy

Practice habits of strong olympiad students

Talent helps, but habits decide how far a student goes. These habits make the biggest difference:

  • Practise little and often. A few focused sessions each week beat one long session a month.
  • Think before typing. Plan the algorithm on paper, check it on small examples, and estimate whether it is fast enough before writing any code.
  • Struggle, then learn. Give a problem a real attempt first. If stuck after a fair time, read a hint or the solution, then close it and write the code from memory.
  • Keep a mistakes notebook. Note each bug and lesson, such as forgetting an edge case or a number that grew too large. Many errors repeat.
  • Test edge cases. The smallest input, the largest input, all equal values and empty cases catch many wrong answers.
  • Upsolve. After a contest, solve the problems you could not finish. This is where most learning happens.
Student seen from behind writing a prefix sums problem on a whiteboard at a programming club
Strong olympiad students plan the algorithm on paper or a whiteboard before they type. Photo: UC Davis College of Engineering, CC BY 2.0

Shorter, lighter contests also help younger students build confidence. Codinzy runs online coding competitions in Scratch, Python and AI by age group, and our free AI and coding quizzes are a quick way to check the basics.

How parents can help, and where to get support

Parents do not need to understand algorithms to help. What matters is a steady, encouraging environment.

  • Focus on learning, not medals. Very few students reach the IOI, but every student who prepares seriously gains strong problem-solving skills that help in maths, science and university.
  • Protect regular practice time, and keep it balanced with school, sleep and other interests.
  • Celebrate progress, such as solving a first graph problem or improving a contest score.
  • Help find the right challenge. Problems that are far too hard can discourage; problems that are too easy stop growth.

Many students benefit from a coach who can choose the next topic, explain hard ideas in several ways and review their code. Codinzy's IOI Algorithms & Problem Solving course teaches olympiad-style algorithms and problem solving for grades 6–12, as private 1-on-1 classes (Prime plan) only, so the pace follows your child.

If your child is still building coding basics, the Python Programming course is a good foundation first, and the guide on coding for teens covers other options. When you are ready, book a free trial class and the tutor will check your child's level and recommend the right starting point.

Live courses on this topic

Questions parents ask

What age can a child start preparing for a coding olympiad?

Many students begin serious preparation in middle school, around grades 6 to 8, once they can program comfortably. Younger children can build the foundations through Scratch, Python and maths puzzles. Students who start in high school can still do well, because steady practice matters more than starting age. Check your national olympiad for its age and school-year rules.

How do students qualify for the IOI?

Students qualify through their own country's national informatics olympiad, not by applying to the IOI directly. Each country runs its own rounds and chooses a small team, of up to four students, to send to the IOI. The number of rounds, the dates and the rules are different in every country, so look up your national olympiad's website.

Which programming language is best for the IOI?

C++ is the standard choice for the IOI and for the harder rounds of most national olympiads, mainly because it is fast and has a rich standard library. Python is excellent for learning programming and algorithms, and many first rounds accept it. Check the current rules for the languages allowed in each contest.

Does my child need to be good at maths for coding olympiads?

It helps a lot. Olympiad problems use logical reasoning, counting, number patterns and careful proof-like thinking. Your child does not need to be top of the class in school maths, but an interest in puzzles and a willingness to think deeply are important. Maths and olympiad programming skills tend to grow together with practice.

How long does it take to prepare for an informatics olympiad?

It depends on the starting point and the goal. A student with good coding basics may be ready for a national first round after a few months of focused practice. Reaching national finals or the IOI usually takes several years of steady work. Setting small goals along the way keeps preparation enjoyable and realistic.

Is preparing for a coding olympiad worth it if my child does not win?

Yes. Olympiad preparation builds deep problem-solving, persistence and strong programming skills that are valuable in school, university and future careers. Most participants never reach the IOI, yet the habits they build, such as planning before coding and learning from mistakes, last long after the competitions end.

Read next

All coding for kids guides