HEAT / M / 01
Maths through coding
Counting and number puzzles, checked in Python.
Open the syllabusHong Kong · Informatics olympiad · HKOI Heat Event
HKOI publishes its old Heat papers free of charge, with answer sheets and official solutions for recent years. What it cannot publish is a guide to reading them: how the marks are spread, why the Python version of Paper 2 is converted, and what to do with a paper once it is marked. This page is that guide. We also coach the Heat live, one to one and in English, with practice we write ourselves.
Teaching since 2020 · 10,000+ students worldwide · Hong Kong classes are one to one, live and in English
In short
The HKOI Heat Event is the written first round of the Hong Kong Olympiad in Informatics: Paper 1 (50 minutes, 25 marks) for every student and Paper 2 (40 minutes, 20 marks) in a Python or a C++ version. Past papers, answer sheets and official solutions are free on hkoi.org, and Python Paper 2 marks are equated to the C++ scale. Modern Age Coders coaches Heat students through live online classes in English, one to one, at hours your family picks on Hong Kong time, with practice we write ourselves.
Courses for the Heat
The Heat rewards careful reading more than fast typing. These three courses build that skill and then carry it into the programming Final.

HEAT / 01
The closest fit for Heat preparation. Logic, tracing, searching, sorting, stacks and queues, practised on paper first, the way the Heat is sat.
Open the syllabus →
HEAT / 02
For a student who plans to answer the Python version of Paper 2. Lists, strings, slicing and functions, down to the details a short question turns on.
Open the syllabus →
HEAT / 03
For the student who also wants the Final. C++, complexity and full solutions under a judge, built on the reading skills the Heat demands.
Open the syllabus →Where to find them
On the HKOI website, on a single page called Past Problems. Everything there is free, and it is the only source a student should treat as the real thing.
The HKOI Past Problems page lists Heat papers for both groups year by year, from 2025/26 at the top down to 1997 at the bottom. For recent years each group has three files: the paper in English and Chinese, the answer sheet, and an official solution. There is also a sample paper filed under 2024/25.
Older years are thinner. Some come as separate English and Chinese documents, some with a suggested answer. HKOI adds a fair warning about those older answers: they "are prepared by individual HKOI trainers" and "should not be considered as the official answer". The same page holds Final Event tasks, and a separate page carries Final solution slides.
The papers belong to HKOI. We do not copy their questions into our lessons, retype their solutions, or sell anything built from them. When a student wants to sit a past paper, we send them to hkoi.org to download it, and we go through their answers with them afterwards.
For teaching we write our own questions in the same spirit, as the practice set further down shows. A student who has met a topic in our problems will recognise it in an official paper, without having seen the official paper in advance.
One more point about the Heat before the details: it is a filter, not a prize round. HKOI's FAQ says plainly that "Only the results of the Finals Event will be counted towards awards", and that the Heat exists to pick students likely to do well in the Final, adding that "Historically, there is a high correlation between the performances in Heat Event and Final Event." The rules let at most 96 students per group advance, apart from a small allowance for defending Gold medallists. Students who want to see how the Final then works can read our C++ for competitive programming page.
Paper layout
Every recent paper follows the same plan: a short multiple-choice section, a set of short questions, and two longer fill-in questions. Knowing the plan before the day saves minutes that matter.
| Paper and section | Question type | Questions | Marks |
|---|---|---|---|
| Paper 1, Section A | Multiple choice | 10 | 10 |
| Paper 1, Section B | Short questions | 6 | 9 |
| Paper 1, Section C | Long fill-in questions | 2 | 6 |
| Paper 1 total, 50 minutes | For every student, in neither language in particular | 18 | 25 |
| Paper 2, Section A | Multiple choice | 5 | 5 |
| Paper 2, Section B | Short questions | 6 | 9 |
| Paper 2, Section C | Long fill-in questions | 2 | 6 |
| Paper 2 total, 40 minutes | Python version or C++ version, one only | 13 | 20 |
Source: the cover tables of the HKOI 2025/26 Heat papers for the Senior and Junior Groups (files 2026hs.pdf and 2026hj.pdf on the HKOI Past Problems page), read for their layout only, and the HKOI Rules. The question totals in the first column are our addition of the published counts; the mark totals are HKOI's own.
Section A of the 2025/26 papers states: "No marks will be deducted for wrong answers." So a student should never leave a multiple-choice box empty; an eliminated guess is better than nothing.
The answer sheet is its own hazard. The rules allow penalties for "failing to fill in the answer sheet properly", of no less than 1% of the full marks each time, and the FAQ says that includes a missing seat number. Students should practise on the real answer sheet from the archive, not on scrap paper.
For Paper 2, a student who attempts both versions, or forgets to mark which one, has the Python version disregarded under the rules. One clear tick matters.
The papers print English and Chinese side by side, and spoken instructions are given in Cantonese and English. No dictionary or calculator is allowed, and the 2026/27 event page asked students to bring 2B pencils and erasers.
The two papers run back to back. The 2026/27 contestants' handbook says "There is no break time until the end of Paper 2", so the session is a single block of about an hour and a half: 10:00 am to 11:50 am for the Senior Group and 2:30 pm to 4:20 pm for the Junior Group on 7 November 2026.
Answers are not appealable. The FAQ explains that multiple-choice answers are machine-marked and short answers by "at least 2 markers and/or AI models", and that HKOI publishes only aggregate statistics, such as the qualifying mark.
In the 2025/26 Senior Paper 1, the multiple-choice questions ranged across tiling a shape, the behaviour of sorting algorithms, a logical claim about test scores, properties of simple graphs and operations on stacks and queues (our summary of the topics, not the questions). That spread matches the HKOI syllabus, which HKOI calls "a guide only". Paper 1 also tells students that the word "arrays" generally means lists in Python, a small note that saves a Python student real confusion.
Python marks
Because the Python and C++ versions of Paper 2 are different papers, and one may turn out easier than the other. HKOI publishes the method it uses to put the Python marks on the same scale, and its 2025/26 conversion table shows the effect can go either way.
Under the rules, a C++ student's Heat mark is Paper 1 plus the raw Paper 2 mark. A Python student's Paper 2 raw mark is first turned into an "Equated Mark", and that is added to Paper 1. The organisers' document, HKOI Heat Event Equating Method, sets out the steps, and notes that the method is designed for HKOI and "not generally applicable to other competitions".
| Raw Python Paper 2 mark | Equated mark, Senior Group | Equated mark, Junior Group |
|---|---|---|
| 10.0 | 8.0 | 12.5 |
| 15.0 | 12.5 | 18.5 |
| 16.5 | 14.0 | 20.0 |
| 20.0 | 20.0 | 20.0 |
Source: HKOI Organizing Committee, HKOI 2025/26 Statistics, "Marks Conversion Table for Heat Event Paper 2 Python Version". Four rows selected by us from the full table.
The table says something students rarely expect. In 2025/26 the Senior Python paper was converted down (a raw 10.0 became 8.0), while the Junior Python paper was converted up (a raw 10.0 became 12.5, and anything from 16.5 upward became the full 20.0). Equating does not punish Python. It corrects for whichever version turned out easier, judged by how students of similar Paper 1 strength did on the two versions. To show the steps working, we rebuilt the idea in a short program and ran it on marks we invented.
# Our own simplified re-creation of the idea in HKOI's published "Heat Event Equating
# Method", run on INVENTED marks. Not HKOI's code, data or results.
import random
random.seed(7) # invented contestants, same every run
def half(x): # marks are kept to the nearest 0.5
return max(0.0, round(x * 2) / 2)
cpp, py = [], []
for _ in range(300): # 300 invented C++ takers
skill = random.random()
cpp.append((half(4 + 19 * skill + random.uniform(-2, 2)), half(2 + 15 * skill + random.uniform(-2, 2))))
for _ in range(300): # 300 invented Python takers, with an easier Paper 2
skill = random.random() ** 1.3
py.append((half(3 + 18 * skill + random.uniform(-2, 2)), half(4 + 15 * skill + random.uniform(-2, 2))))
def decile_averages(marks): # steps 2 to 4: sort, cut into 10 groups, average each
m = sorted(marks, reverse=True)
n, out, start = len(m), [], 0
for i in range(1, 11):
end = round(i * n / 10)
out.append(sum(m[start:end]) / (end - start))
start = end
return out
A = decile_averages([p1 for p1, p2 in cpp]) # C++ Paper 1
B = decile_averages([p2 for p1, p2 in cpp]) # C++ Paper 2
C = decile_averages([p1 for p1, p2 in py]) # Python Paper 1
D = decile_averages([p2 for p1, p2 in py]) # Python Paper 2
def interpolate(x, x_hi, x_lo, y_hi, y_lo): # straight line between two known points
return ((x - x_lo) * y_hi + (x_hi - x) * y_lo) / (x_hi - x_lo)
F = [] # steps 5 and 6: expected mark, then factor
for j in range(10):
f = None
for k in range(9):
if A[k] >= C[j] >= A[k + 1]:
expected = interpolate(C[j], A[k], A[k + 1], B[k], B[k + 1])
f = expected / D[j]
break
F.append(f)
def factor(raw): # step 7: factor for any raw mark
known = [(D[j], F[j]) for j in range(10) if F[j] is not None]
if raw >= known[0][0]:
return known[0][1]
if raw <= known[-1][0]:
return known[-1][1]
for (d_hi, f_hi), (d_lo, f_lo) in zip(known, known[1:]):
if d_hi >= raw >= d_lo:
return interpolate(raw, d_hi, d_lo, f_hi, f_lo)
def equated(raw):
if raw == 20:
return 20.0
return min(20.0, half(raw * factor(raw)))
print("group C++ P1 C++ P2 Py P1 Py P2 factor")
for j in range(10):
f = " n/a" if F[j] is None else f"{F[j]:5.2f}"
print(f"{j:>5} {A[j]:6.1f} {B[j]:6.1f} {C[j]:5.1f} {D[j]:5.1f} {f}")
print("raw Python Paper 2 mark -> equated mark")
for raw in [20, 18, 15, 12, 9, 6, 3]:
print(f" {raw:>4.1f} -> {equated(raw):4.1f}")Our own simplified re-creation of the published steps, on 600 invented students. It is not HKOI's code, its data or its results, and HKOI's real calculation keeps more decimal places. Run it with python3 equate.py.
group C++ P1 C++ P2 Py P1 Py P2 factor
0 22.5 16.6 19.9 18.2 0.80
1 20.3 14.8 17.3 16.1 0.77
2 18.5 13.5 15.3 14.2 0.75
3 16.7 11.9 13.4 12.4 0.75
4 14.8 10.3 11.1 10.8 0.72
5 12.4 8.7 9.3 9.4 0.68
6 9.8 6.8 7.2 7.9 0.60
7 8.1 5.4 5.9 6.5 0.57
8 6.3 4.0 4.6 5.4 0.47
9 4.1 2.1 3.0 3.8 n/a
raw Python Paper 2 mark -> equated mark
20.0 -> 20.0
18.0 -> 14.5
15.0 -> 11.5
12.0 -> 9.0
9.0 -> 6.0
6.0 -> 3.0
3.0 -> 1.5The exact output. Every number here comes from our invented marks, not from any HKOI contest.
Look at group 0. Our invented top Python students averaged 19.9 on Paper 1, between the C++ averages of 22.5 and 20.3, so the program expects them to score between 16.6 and 14.8 on Paper 2. They actually averaged 18.2 on their own Paper 2, so their factor is 0.80: in our made-up data the Python version was the easier paper.
Group 9 has no factor. Its Paper 1 average of 3.0 falls below every C++ group, so there is nothing to compare it with, exactly the case the HKOI document marks "N/A". The program then reuses the nearest factor, which is our choice for the demonstration.
Students sometimes pick the Python version believing it is a safer mark. Equating removes most of that advantage, or disadvantage. Choose the version for the language you read most accurately, because that is what the raw mark measures before any conversion.
It is also a fine piece of mathematics in its own right: sorting, grouping, averaging and straight-line interpolation, all of which appear in the HKOI syllabus or close to it. Rebuilding a published method is the kind of exercise we use to teach students to read documents carefully, which is the habit behind our thinking-first teaching.
Using past papers
Slowly at first, and then under exam conditions. A past paper used as a quiz gives a score; used properly, it gives a list of exactly what to fix.
In 2025/26 the Heat had a full mark of 45. HKOI's statistics show that the qualifying mark was 21.5 in the Senior Group and 25.0 in the Junior Group, with medians of 13.5 and 16.5. A student does not need a perfect paper to reach the Final; roughly half marks in the Senior Group did it that year.
So the realistic aim is consistency on the questions within reach, not heroics on the hardest one. Most of the marks a prepared student loses are lost in Section B, on short questions where one slip in a trace gives a wrong number.
The second pile, careless tracing, is where one-to-one teaching pays off fastest. A mentor watching a student trace a loop on camera can see the exact line where attention drops, which a marked paper cannot show.
We keep official papers for the student's own timed practice and use our own questions for teaching, so the student meets the official papers fresh when it counts. More about our approach to contest preparation is on the informatics olympiad training page.
Our practice set
Yes. These six questions are ours, written for this page in the style of Heat short questions. None comes from an HKOI paper. Try them on paper before reading the answers.
x starts at 1. A loop runs for i = 0, 1, 2, 3, 4 and each time sets x = x * 2 + i. What is x at the end?s = "hongkong", what does s[::2] give?Answers. 1: 58. 2: stack 3, 4, 2; queue 1, 2, 3. 3: 47. 4: 4 swaps. 5: 2 (it is the "exclusive or"). 6: "hnkn". We checked every answer by running a short program of our own, because a practice set with a wrong answer teaches the wrong lesson.
Questions 1 and 4 train trace discipline: writing down the state after every step instead of jumping to the end. Question 2 trains the difference between "last in, first out" and "first in, first out", which multiple-choice options love to swap.
Question 3 trains counting without listing: 33 multiples of 3, plus 20 of 5, minus 6 numbers counted twice. Question 5 is Boolean algebra in disguise, and question 6 is the sort of language-specific detail Paper 2 can ask in its Python version.
In class the mentor would ask for each answer aloud, in English, before saying whether it is right. When an answer is wrong, the useful question is not "what is the answer?" but "which line did you get wrong?".
Students who enjoy questions like these but want more programming can look at our data structures and algorithms page, and the Hong Kong coding classes page lists every course we teach in Hong Kong.
Progress
Our own measures for written-round preparation, reported to parents. They are not HKOI scores or predictions.
| Measure | What we look at | Ready when |
|---|---|---|
| Trace accuracy | Short programs traced by hand | Nine out of ten correct, three sessions running |
| Topic coverage | Syllabus topics met and practised | Every topic for the group ticked |
| Section B rate | Short questions right on our own papers | Steady across two timed papers |
| Answer-sheet errors | Boxes, seat number, version tick | None in two timed papers |
| Timing | Both papers back to back | Finished with ten minutes to check |
| Mistakes log | Kept and re-read | The same mistake not repeated |
A blank box scores the same as a wrong guess.
Name the line you got wrong, not just the answer.
Ask to see the mistakes log, not only the scores.
Answer-sheet slips cost marks too.
More courses
Nine more courses, all taught in Hong Kong as live one-to-one classes in English.
HEAT / M / 01
Counting and number puzzles, checked in Python.
Open the syllabusHEAT / M / 02
Logic and counting for younger students.
Open the syllabusHEAT / M / 03
Deeper problem solving for strong students.
Open the syllabusHEAT / L / 01
The Final's main language, from scratch.
Open the syllabusHEAT / L / 02
For younger students starting early.
Open the syllabusHEAT / L / 03
Another typed language for school exams.
Open the syllabusHEAT / S / 01
Theory and Python for Cambridge 0478.
Open the syllabusHEAT / S / 02
Diploma CS, with the IA owned by the student.
Open the syllabusHEAT / S / 03
Models and data, for curious seniors.
Open the syllabusHow classes run
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends.
Weekday evening
Afternoon in India, so tracing drills can follow homework.
Saturday
Good for a full timed paper and a review straight after.
Holiday weeks
Extra sessions when school is out, if wanted.
Your child works with the same mentor every week.
Tracing is done by hand, where the mentor can see it.
Teaching uses problems we write, never HKOI's.
Kept for timed practice, downloaded from hkoi.org.
Kept in English and reviewed each month.
Short updates on what improved and what is next.
Student work
Projects from our longer courses, by students in many countries. There are more in our student labs.

AI and ML
An AI nutrition coach that reads what you eat and works you toward a target.

AI and ML
A chatbot that answers mathematics and programming questions, built and deployed by a student.

AI and ML
An assistant that helps a young person recognise unsafe situations online.

Web app
A weather forecasting site with live conditions for any location.
Fees
Classes are billed monthly, with the fee shown here in Hong Kong dollars. Each month is paid on its own, so you never commit a large amount up front. Where your payment method carries a gateway charge, checkout shows it before you agree to pay.
Free first class
Free
no card required
One to one
$1,200 HKD
a month, eight live classes
What families say
Google reviews from parents and students, as they wrote them.
★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
★★★★★
"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."
Samriddha Mondal
Student
★★★★★
"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."
Vansh Agarwal
Student
★★★★★
"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."
Sonam Oswal
Parent of Dhairya
★★★★★
"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."
Sonu Goyal
Parent
★★★★★
"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."
Ritu Kedia
Parent
Heat questions
On the Past Problems page of hkoi.org. It lists Heat papers for both groups from 2025/26 back to 1997, with answer sheets and official solutions for recent years. They are free.
No. The papers belong to HKOI, and we send students to its website. We teach with questions we write ourselves.
Paper 1 lasts 50 minutes for 25 marks and Paper 2 lasts 40 minutes for 20 marks, sat back to back. Wrong multiple-choice answers lose nothing, but answer-sheet mistakes can cost at least 1% of the full mark each.
Not in a way that helps. Python marks are equated to the C++ scale. In 2025/26 the Senior Python marks were converted down and the Junior ones up, so choose the language you read most accurately.
It changes every year. In 2025/26 the qualifying mark out of 45 was 21.5 for the Senior Group and 25.0 for the Junior Group, according to HKOI's statistics.
HKOI says it publishes only aggregate statistics, such as the qualifying mark, and does not accept appeals.
No. We coach the skills and give honest feedback, but we never promise a Final place, a medal or any selection.
Yes, every class is live, online and taught in English by a mentor based in India. We do not teach in Cantonese or Putonghua.
No. In Hong Kong we teach one to one only.
Any day, any time, flexible: one to one at the hour that suits your family, weekdays or weekends. With India 2 hours 30 minutes behind Hong Kong, a 7 pm class for your child is 4:30 pm for the mentor.
Monthly, in Hong Kong dollars as shown on this page, one month at a time, with any gateway charge shown before you pay.
Related
Where Heat families usually go from here.
All our Hong Kong courses.
What the Final asks of a student.
Contest preparation beyond the Heat.
Another contest with a written-style first round.
Why we ask for reasons, not just answers.
A live class, step by step.
Part of the guide: Every Hong Kong page
More guides: Coding and AI classes in Hong Kong · 中文:英文授課編程課程 · Start here: Online coding for kids · AI, vibe coding and AI agents: AI agents course · Coding subjects and courses: App development · By age and school level: Adults · HKDSE ICT and maths: DSE ICT elective guide · IB, IGCSE, A-level and SAT: A level Computer Science tutor · Guides for families: After-school coding · School holidays: AI summer course · Districts and areas: Causeway Bay
Start here
Tell us your child's group, language and any past papers already tried. In the free class the mentor sets two tracing questions of our own, watches how your child works on paper, and suggests a plan for the archive, live and one to one.
Prefer to read first? How we teach shows a class, and our courses page lists every syllabus.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Live online classes in English with mentors based in India. Message us on WhatsApp in English for the quickest reply.
A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.
Book a priority demo