Greetings Codeforces!
First things first, we would like to thank everyone who participated in the previous nine Kotlin Heroes competitions: Episode 1, Episode 2, Episode 3, Episode 4, Episode 5: ICPC Round, Episode 6, Episode 7, Episode 8, Episode 9, and Episode 10.
Kotlin Heroes is a great way to play around with Kotlin’s features, learn something new, and practice using the language by solving fun problems. It is great for programmers of any level!
We invite you to join the practice round, where you can improve your algorithmic problem-solving skills and complete training problems. In this round, all the solutions are open and you can request hints if you’re stuck.
Watch tourist and ecnerwala tackle the Kotlin Heroes practice round challenges at the ICPC World Finals in Astana.
Here are some things you can do to help you refresh your knowledge of Kotlin and learn more about competitive programming while you practice:
- Review our Kotlin solutions for the Advent of Code algorithmic puzzles.
- Read our competitive programming tutorial.
- Watch the videos from our Kotlin in Competitive Programming YouTube playlist.
- Look at the problems from the previous practice rounds.
On September 30, 2024, the real challenge begins! Kotlin Heroes: Episode 11 will last 2 hours 30 minutes and will feature a set of problems ranging from simple ones, which are designed to be solvable by anyone, to some really tricky ones for seasoned competitive programmers.
Note that the usage 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.
Prizes:
The top three winners will receive cash prizes of $512, $256, and $128 (or rewards of equivalent value), respectively. The top 50 participants will win a Kotlin Heroes T-shirt and an exclusive Kotlin sticker, and all competitors who solve at least one problem will be entered into a raffle for one of 50 Kotlin Heroes T-shirts.
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. To see the list of sanctioned countries and regions, please visit this page.
Best of luck to everyone!
Not relevant to me, but please clarify if language translations from other languages into Kotlin are allowed. (And also clarify for language translations on CF in general). It is not explicitly ruled out in the “Rule restricting the use of AI” blog, and it is debatable if it falls under allowed cases.
(Edit): For this contest it is quite clear that it should not be allowed. I personally think language translations in general should not be allowed. The reasoning is too long for me to summarizes in this short comment.
This is probably not allowed, considering the allowed language is Kotlin only. If this were allowed, they would just open it to new languages. Why would you make it Kotlin only then allow people to convert?
just my take
I agree, it will be very silly if it is allowed in this contest in particular.
I was going to say why in general it should not be allowed on CF. I will update my comment as I omitted this.
Yes, that makes sense.
I agree, it should not be allowed.
It's not too long. This is a Kotlin only contest
Automatic translation from other programming languages to Kotlin is not allowed. I've added this information to the announcement.
Thank you for the clarifications.
I find it funny to see that the Intellj Java to Kotlin converter (which is the only other good non-AI translator I can think of), is now banned collaterally — something that had been used for 5 years already ever since the first Kotlin Heroes.
Can it be more publicly announced? Right now, it is hiding in a small portion of an announcement
Especially because previously contestants did do it and were not penalized.
Thank you for your comments and questions! Since the goal of the contest is to encourage participants to try Kotlin, we ask that you do not use AI to solve the problems or translate solutions from other languages.
Is it rated?
Since language translation is not allowed, does some know any quick source of learning the basics of kotlin? like in an hour or something
As a quickest learning resource, we can recommend this tutorial: https://kotlinlang.org/docs/competitive-programming.html. You might also find some useful tips on our YouTube: https://www.youtube.com/playlist?list=PLlFc5cFwUnmyQA0l15nAfE1-pnu6fSvvG
Just go through the docs or general syntax , from official website or w3 schools .
is it rated?
Is it rated?
This contest is not rated, But If you can solve at least one problem, you'll have a chance to win a t-shirt
https://ibb.co/ggmMyP6 Can I know when I'll get my t-shirt?
BledDest?
It's from 3 years ago, probably lost already?
I forgot about that shirt. But hopefully I'll still get it.
thanks to everyone involved for helping me realize how superior c++ is
Thats just me every time I go close to something like java.
if you search for an online IDE https://onecompiler.com/kotlin this works well.
I struggled a lot for finding a working website at the beginning of the contest. so here you go for the future contests.
much appreciated as i struggled in the beginning myself!
Is it normal to use java ArrayList over the Kotlin native List?
Not very familiar with Kotlin... was just using what ever compiles.
You can but there is not much reason to I think. Kotlin data structures are more convenient, e.g.:
Since you have immutable data structures you can also do reliable hashing, etc.
Thanks for the answer! I wanted to make an empty list, and the compiler was complaining about type inference.
listOf<Int>()
ah thanks!
problem G is really funny troll problem, made my day lol
I'm curious why my O(N) solution to E is getting TL. Is there something particularly slow in Kotlin among the things I'm doing?
It's quadratic: String+Char creates a new string. Use StringBuilder instead.
Hell, forgot about this Java shit with strings. Thanks a lot!
Why I can't see solutions submitted by other contestants after contest? No open-hacking phase? No tutorial?
Will it be possible to submit solutions after the contest?
It's possible now
Thank you for participation! We hope you enjoyed the problems.
The current version of the editorial (no problem I, some other problems might be unpolished) is available here.
Also, these are our model solutions to the problems:
lol everyone will open I first
After the entire contest, I realized there is only one sheep in problem D LOL :(
This was my first time trying Kotlin and participating in the Kotlin Heroes contest. It was a great experience, and I enjoyed it so much! I'm looking forward to joining future contests and improving my skills in Kotlin.
Here are the resources I used to learn Kotlin:
Kotlin Tour
Kotlin Koans
Kotlin for Competitive Programming
Thanks for the awesome contest and the great problems!
It was fun trying out Kotlin, got mixed up with types a lot. I had this problem where I did a for loop and compared i to a long value inside, so it autoconverted i to long and then all of my array indexing with i threw errors, I was so confused for a good bit lol
I definitely needed more time learning types and Kotlin syntax but I will say using the IntelliJ IDE made this contest feel very fun and refreshing. Very cool problems too, even though I didn't get to solve the harder ones, I liked the problems I was reading.
Are the raffles selected yet? Or will only the winners know?
If you get info. then please forward me the same.
To me too please
Is it possible to continue submitting code to practise round? It shows contest is over.
Why can't we view the solutions of other participants???
Can I solve the problems in any language or only kotlin?
Hi BledDest are the raffles seleceted yet for tshirts...?
I guess yes but I am not sure as I received a text regarding prize and there has been no follow up since then, the text was something like :
"Hello, frissky9! We are pleased to inform about your award for "Kotlin Heroes: Episode 11".
Congratulations!"
waiting for updates! BledDest
I don’t know why no one has posted/commented about it yet, but here’s the message I received from System.
ATTENTION: ACTION MAY BE REQUIRED! We have added a new checkbox that needs to be ticked, and the form submitted, so we can send you your gift. PLEASE READ THE MESSAGE IN FULL.
Hello, Aliyyiakbar!
We are pleased to inform about your award for "Kotlin Heroes: Episode 11". Congratulations!
Please be sure that your profile contains complete information about t-shirt size and shipping address. Also, don't forget the checkbox indicating that you agree to transfer this data to the Codeforces partner for prize and/or souvenir delivery.
The deadline is 23:59 October 21, 2024 (UTC). If you do not do this, then, unfortunately, the partners will not be able to transfer the prize to you.
Thank you.
Who are the winners, can you explain, 2 weeks have been passed.