← All posts

Field note

High School Informatics Olympiad

Story of my National Olympiad in Informatics journey during high school

  • Story
  • Competitive Programming

Background

During high school, I was participating in Indonesian National Science Olympiad in Informatics, or in Indonesia we call it Olimpiade Sains Nasional (OSN).1 Actually I have partially told this story in my old Indonesian blog before, but I want to complete my story before I forget more details. I write this blog not to boast about my achievement,2 but I hope it will help in your journey if you’re currently (or want to) participate in competitive programming.

Now, you might say how is reading stories like this can help your competition performance in anyway? Well, probably it won’t. But for me, I used to get motivation when I read others’ story for their competitive programming preparation. Sometimes, just watching William Lin’s video on his 5 hours screencast for practicing his IOI also motivates me, even though practically I don’t learn any new competitive programming technique stuff. And hey, getting new perspective is fun.

OSN 2020

Okay let’s start. In OSN, we have 3 stages for the competition, city, province, and national. OSN have many fields outside informatics, like math, biology, chemistry, physics, etc. In elementary and middle schools however, I was never good enough to be able to represent my school for this competition (informatics only exists for High School olympiad).

Then during High School, I picked informatics for the OSN.3 I don’t know anything about competitive programming, or even algorithm and data structure. Note that I already had a little programming experience, at least I know a little about python for loop and function. But that’s it.

City stage

For the city stage, we are not expected to actually code just like a standard competitive programming competition. Instead, we have some multiple choice questions that mostly about combinatorics, logic, number theories, and pseudocode reading. Our school preparation is mostly us learning about the math needed (especially combinatorics). I remember that I was studying hard and strugling especially about number theory like fermat, euler, diophantine theorem, etc.4

Around this time, I was also surfing the internet to learn more about OSN in Informatics. And I found a youtube playlist by IA-TOKI5, which introduces me to TLX platform.

TLX is an Indonesian competitive programming platform similar to codeforces or atcoder. But it also has a “Course” which at the time contained two section, basic programming (from very basic up until recursion) and basic competitive programming (adhoc, binary search, basic data structure, dynamic programming, graphs, and even basic geometry). This is huge for me, since I like coding a lot more than math at the time.

During my city stage preparation, I was both studying past City stage problem and also doing the basic programming section. I remember that I was also asking many questions in IA-TOKI facebook group for the basic programming.

The city stage is held offline at each city, and in Makassar it’s held at SMA Islam Athirah. I remember feeling very excited, especially since there is a lot of students coming from various schools in my city, and I also got to met my friends from my middle school (I changed school at high school).

The actual competition is held in a classroom, where all students are splitted accordingly. And then the test is actually answered at the paper. This is different with the recent OSN’s city stage which is computer based.

I forget how did I feel after the test, but I think I wasn’t sure that I did good enough to qualify. Still it was fun that I could discuss with the other contestants aftwerward.

Province stage

I suddenly got a chat from my friend mentioning that I pass to province stage. I was unbelievably happy and shocked. Three contestants passed to province stage for each city, and my point is equal to the top contestant.

For the province stage, there is a change that makes me comfortable. The format and type of problems for previous province stage previously similar to city stage, but you have to fill the answer without multiple choices, and two problems at the end which is close to an actual competitive programming problem. The catch is that we still have to write all of it in paper, meaning you have to actually write the pseudo code for the last two problems by hand. Sounds painful, and also subjective since someone will have to read your pseudocode.

In 2020, the format is changed so that we have 10 fill-in-the-blank problems (previously it was 35 problems of this type), and 6 programming problems. And the good news is that we will do the test using computer. And for the programming problem, we will actually code and allowed to compile our code in our computer. But it’s not 100% competitive programming, since we don’t have a live verdict for our program. Instead we submit our code to the platform, and that’s it. Some details were also unknown, for example what is the point proportion between the fill-in-the-blank and programming problems.

This changes allow me to focus more on learning programming, instead of math. As I said previously, I enjoyed learning about programming more than doing math.

Another thing that I felt was crucially important that helped me for my preperation, our school actually allow us to skip some classes and sometime even give us free lunch. This is very helpful for me, because i could focus on the olympiad. For my whole preparation for the olympiad, I never had a coach or enrolled at a training program for the olympiad. This is not because I couldn’t or anything, but at the time I thought that learning by myself is enough since everything is available at the Internet. To this day, I don’t know if I actually enrolled in a training program would I do better or not, but it is what it is.

I remember that everyday I was practicing either by working on the TLX course or solving codeforces problem. But honestly, at the time I felt like what I do is not enough. I felt insecure since I often stuck at one problem for hours or sometime even days.

Anyway, then come the competition. I don’t remember the details, but I think I solved 3 programming problems and manage to solved half of the 4th problem (each problem have 2 subtasks). I don’t remember if I feel confident for my result or not, but maybe yes (although not perfectly sure I would pass to national).

Note that the province stage was held online due to Covid. Kind of disappointing.6

National stage

I passed to national, I think I was the top 1 from my province. The preparation? Well not much difference with before, except that I didn’t practice from any fill-in-the-blank problems. That means I fully grind the TLX course and do many codeforces. There’s nothing particularly special with my training, but I did lot of school class skipping for the preparation.

Same as the province stage, the national stage was held online. Again disappointing since I couldn’t get the usual free travel. And furthermore, I did the competition in my bedroom and we have to join a zoom meeting for proctoring, and we have to put a clock (I use wall clock) beside us.

The national stage format is more or less the same as IOI, compete for 5 hours in 2 days, and each day you are given 3 problems with multiple subtask for each problem. Sorry, but I don’t think I remember much details for the competition itself :D. I mean what are you expecting anyway, it’s 6 years ago.

But I remember that I already expected to not get a medal. I was not very disappointed since I know I can try again next year.7 I got 39th place, 9 place below the bronze medal threshold.

OSN 2021

I won’t explain the preparation and the competition for city and province stage, since it’s basically the same. The difference is that the city stage is held online, and the province stage is held “offline” at one school in Makassar (but we still use online proctoring). Fortunately, I managed to passed to national stage again.

I felt like this time I was more prepared since I have more online friends that also do competitive programming in Indonesia. Yes, if you have friends that also serious in what you’re also doing it’s going to boost you a lot. Additionally, I think I did some virtual contests for other’s country national olympiad and stuff. And given that this time I had 1.5 years of competitive programming experience, I should be better.

For day 1 of the OSN, I remember that my result is not that great, but not terrible. I think my score for the first day is at 17th place, though I only knew this after the official announcement has come up. And my day 2 result is actually very good, I got second place for the day 2 alone, although many other contestants also have the same score as me.

Note that during the olympiad, we only know our own score but not other people. We have to wait until the announcement the next day to know what medal we got, and what is our actual rank. So after the competition, I remember I tried to asking other contestant score. And I only found 2 or 3 people that has better score than me. Is this it, do I got gold which given to 5 contestant?

I got 6th place with only 9 point difference with the last gold contestant (which is also my friend). I remember when the announcement mention my name as a silver medalist, I felt very dissapointed. Then people were congratulating me, and I got even more dissapointed. Damn, I should’ve put more effort on that one substask, thought I.

Conclusion and Tips

Well, this blog is getting too long so let’s get this over it. Participating in the olympiad actually gives me a lot of benefit, for example I could received scholarship from my university due to my achievement. Here is some tips from me if you’re participating in a competitive programming competitions:

  • If you’re a beginner, you can follow the course at TLX for Indonesian, or do CSES Problemset for English. You can even follow USACO guide.
  • Obvious one, do many problem solving. You can solve past OSN problem, codeforces, atcoder, does not matter as long you’re improving.
  • To make it more challenging and fun, participate in routine contests, like in Codeforces and Atcoder. This contest will determine increase or decrease your rating, but don’t get too demotivated if you’re having a bad day and lost many rating. It’s just a number
  • Do virtual contest for the format that you’re trying to compete in, if you’re in high school most likely you will compete in OI format, and if you’re in university you will likely to compete in ICPC format. You can find contest with appropriate format at Codeforces Gym. This will prepare you further for your official contest, since usually the online Codeforces and Atcoder contest is shorter than OI or ICPC format.
  • Most important, have fun. If you’re feeling like you’re too stressed, take a break.

That’s it. Yes very basic. If you want more motivations, you can watch Errichto and William Lin. Don’t watch too much though, get back to Codeforces and practice!

Footnotes

  1. Well, except that specifically during 2020 and 2021, they’re called National Science Competition due to reasons. So I actually participated in Kompetisi Sains Nasional (KSN), but for simplicity I will just call it OSN for this blog. ↩

  2. I mean this story happened around 5-6 years ago anyway ↩

  1. I almost choose physics field for the olympiad because my friend scares me into thinking that informatics will test some weird mathematics problem. Fortunately I finally switch to informatics, it would be tragic if I ended up in physics competition since I sucked at physics, especially at the time. ↩

  1. This type of questions do not always appear but sometime they do on city stage. I still don’t understand why, since even at competitive programming contest (like in codeforce) this advance number theorem rarely appear and considered high level. Thankfully, as far as I know, this type of questions does not appear in recent city stage. ↩

  1. Basically IA-TOKI is an organization for former OSN medalists that has graduated from high school. ↩

  1. Funny, due to covid I was able to participate in many competition located in Java island, since they are held online. If things were normal, I think wouldn’t be participating in as much competitions as I actually did at the time, since the travel cost is very expensive. ↩

  1. Additionally, I already got free OSN merchandize. ↩