BledDest's blog

By BledDest, 2 months ago, In English

Hello Codeforces!

We are happy to announce the new episode of Kotlin Heroes! It is both an opportunity to try learning a new programming language (if you've never coded in Kotlin before) or solve programming problems of very different levels of difficulty in it (if you're already familiar with Kotlin). No matter if you're a professional or a beginner, we'll be glad to see you participate!

This is already the fourteenth time we conduct this competition, and the previous 13 episodes had lots of amazingly talented programmers participating. You can see for yourself by checking them out: Episode 1, Episode 2, Episode 3, Episode 4, Episode 5: ICPC Round, Episode 6, Episode 7, Episode 8, Episode 9, Episode 10, Episode 11, Episode 12 and Episode 13.

To prepare for the Episode 14, we advise you to register to the practice round, which contains several problems of various difficulties from past Codeforces contests. In the practice round, all solutions will be open to view for anyone.

We also recommend that you check some resources which can help you learn more about competitive programming in Kotlin:

And if you’d like to see how the top competitive programmers approach these challenges, check out ecnerwala and SecondThread solving problems from this practice round live on stage at the ICPC World Finals in Baku.

On March 2, 2026, the main phase of the contest starts! During Kotlin Heroes: Episode 14, you will have 2 hours and 30 minutes to solve several programming problems, ranging from simple short exercises to challenges that will test both your coding skills and algorithmic thinking.

The use of AI-based tools during the main contest is strictly limited. To find out the guidelines for proper AI use, what is allowed and what is prohibited, please read the post "Rule Restricting the use of AI". Improper use of AI tools during the main contest may result in disqualification. Using automatic translation tools (including but not limited to neural networks and AI) to convert code written in other programming languages to Kotlin goes against the spirit of the competition, so it is also strictly prohibited.

REGISTER →

Prizes:

  • 🥇 $512 (or equivalent value) for 1st place
  • 🥈 $256 for 2nd place
  • 🥉 $128 for 3rd place
  • 👕 Kotlin Heroes T-shirts for the top 50 participants
  • 🎁 A raffle of 50 T-shirts for anyone who solves at least one problem

Please note that we are not able to ship prizes to any country, state, province, or territory subject to comprehensive OFAC sanctions, including Belarus, Cuba, Iran, North Korea, Russia, Syria, or the Crimea, Donetsk, or Luhansk regions. For complete the list, please visit this page.

Good luck to all of the participants! I hope you will enjoy the problems we've prepared.

Announcement of Kotlin Heroes: Episode 14
  • Vote: I like it
  • +90
  • Vote: I do not like it

»
2 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Is it time scaled ,like most other rounds ?

»
2 months ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

The register button redirects to Episode 13 instead of 14.

»
2 months ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

Hi, I'm wondering when we will receive our shirts for the last Kotlin Heroes contest (Episode 13)?

»
2 months ago, hide # |
 
Vote: I like it -15 Vote: I do not like it

SIX SEVEN

»
2 months ago, hide # |
 
Vote: I like it -6 Vote: I do not like it

for complete the list...

»
2 months ago, hide # |
 
Vote: I like it -6 Vote: I do not like it

Good luck all :)

»
2 months ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

How can I know if I've received the T-shirt or not and will they contact me when the T-shirt starts shipping?

  • »
    »
    6 weeks ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Hi, Are you referring to any Episode in particular? If it's a general question then the answer is that all winners will be contacted to gather delivery details first and then when the prizes are shipped they will get notifications with the tracking details. Hope it helps.

»
2 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How to solve H?

  • »
    »
    2 months ago, hide # ^ |
     
    Vote: I like it +8 Vote: I do not like it

    For each prefix, some numbers are already fixed and some positions are -1 (free). Suppose we want a certain value X to be the MEX. Then all numbers from 0 to X-1 must appear. If some of them are missing, those are gaps. We must fill exactly those gaps using the -1 positions. So first we count how many holes each X needs. If gaps<= number of -1, it’s possible. Then we use dp , where dp[i] tells how many ways we can fill exactly i holes. Since hole count increases smoothly with X, we group them and add contributions efficiently using range query

    • »
      »
      »
      2 months ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      yes, i literally got an idea for H right after contest finished lol

»
2 months ago, hide # |
 
Vote: I like it +15 Vote: I do not like it

Such a fun competition! Thanks for organizing this.

»
2 months ago, hide # |
 
Vote: I like it -21 Vote: I do not like it

Any hint for I ??

»
2 months ago, hide # |
Rev. 4  
Vote: I like it +3 Vote: I do not like it

are they gonna eliminate cheaters from standings, bcz i'm kinda 51st place

upd: yay i got into top49

»
2 months ago, hide # |
 
Vote: I like it +21 Vote: I do not like it

Thank you for the contest, it was fun!

Technical note: if you click on Kotlin logo in the header on the contest page, you go to: https://mirror.codeforces.com/kotlin

But on that page the latest post is from 17 months ago!

I guess, /kotlin page should be either always updated or deprecated.

»
2 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I discovered that Bicky_verma077, ranked 47th, registered just minutes before the contest ended and passed 7 problems in 2 minutes. Is he really not a cheater?

  • »
    »
    2 months ago, hide # ^ |
     
    Vote: I like it -8 Vote: I do not like it

    17 seconds on average to write a solution and submit and pass. Seems legit to me! /s