To get the most from ZCO past papers, attempt each problem untimed first, write your solution on paper before coding, test it on your own edge cases, and only then read the official solution. After that, re-solve the problem a week later without help. One problem handled this way teaches more than five skimmed.

Where to find past problems

The IARCS website keeps an archive of previous ZCO and INOI problems, and online practice platforms have hosted many of them with automatic judging. Availability changes over time, so start from the official IARCS pages and use a judge that lets you submit and see which test cases pass.

The 6-step method

Step 1: Read twice, restate once

Read the statement twice, then explain it in your own words. Work out the input limits at this point, because they tell you how efficient your solution has to be.

Step 2: Solve small cases by hand

Invent tiny inputs and solve them by hand. Patterns usually appear here, long before any code exists.

Step 3: Write the idea, then the complexity

Write the approach in plain sentences and estimate how many steps it takes for the largest input. If it is too slow, return to Step 2 and look for a better idea.

Step 4: Code it and test the edges

  • The smallest input, and the largest input.
  • All equal values, and already-sorted values.
  • Negative numbers and zero, if the problem allows them.

Step 5: Read the official solution

Only after a real attempt. Compare ideas, not just code: what did the editorial notice that you did not?

Step 6: Re-solve it a week later

If you cannot, you understood the solution but not the idea. Note the idea in a short log and try again.

Got a question about this?

Talk to a Code Ninja Program mentor directly โ€” no form, just a quick WhatsApp chat.

Chat on WhatsAppExplore Code Ninja Programโ†’

Keep a mistake log

After every problem, write one line: what went wrong and what would have prevented it. Over a month, this log shows your real weak spots more clearly than any mock test.

When to start timing yourself

Begin timed, full-paper practice only when untimed solving feels steady. A good rhythm is one untimed problem a day and one timed full paper a week, in the last two months.