Блог пользователя vovuh

Автор vovuh, история, 5 лет назад, По-английски

1170A - Three Integers Again

Idea: vovuh

Solution: elizarov

Tutorial
Solution

1170B - Bad Days

Idea: MikeMirzayanov

Solution: elizarov

Tutorial
Solution

1170C - Minus and Minus Give Plus

Idea: MikeMirzayanov

Solution: elizarov

Tutorial
Solution

1170D - Decoding of Integer Sequences

Idea: MikeMirzayanov

Solution: elizarov

Tutorial
Solution

1170E - Sliding Doors

Idea: adedalic

Solution: elizarov

Tutorial
Solution

1170F - Wheels

Idea: MikeMirzayanov, vovuh, pashka

Solution: Benq

Tutorial
Solution

1170G - Graph Decomposition

Idea: MikeMirzayanov

Solution: elizarov

Tutorial
Solution

1170H - Longest Saw

Idea: MikeMirzayanov

Solution: pashka

Tutorial
Solution

1170I - Good Subsets

Idea: MikeMirzayanov

Solution: pashka

Tutorial
Solution
Разбор задач Kotlin Heroes: Episode 1
  • Проголосовать: нравится
  • +47
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

"One can prove the greedy algorith" typo

»
5 лет назад, # |
  Проголосовать: нравится +17 Проголосовать: не нравится

Nice problems. Thank you for the round! Hope there will be more such rounds. Please keep giving T-shirts to 50(or more!) random participants who solve atleast one problem. This will bring more participation for sure because it's too hard for people like me to get in top 50. :(

»
4 года назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

Edit: Nvm, I guess there is nothing wrong with the solution. But there is a bug in displaying dollar sign in comment and post.

Hi, I'm new to Kotlin. Correct me if I'm wrong, but I think the print part in the solution for problem D is incorrect. I guess Kotlin no longer use $$$$$ for template expression.

It should be:

~~~~~ println(a.joinToString("\n") { "$$${it.size} ${it.joinToString(" ")}" }) ~~~~~

https://kotlinlang.org/docs/reference/basic-types.html#string-templates