vovuh's blog

By vovuh, history, 5 years ago, In English

1170A - Очередные три числа

Idea: vovuh

Solution: elizarov

Tutorial
Solution

1170B - Неудачные дни

Idea: MikeMirzayanov

Solution: elizarov

Tutorial
Solution

1170C - Минус на минус дают плюс

Idea: MikeMirzayanov

Solution: elizarov

Tutorial
Solution

1170D - Декодирование числовых последовательностей

Idea: MikeMirzayanov

Solution: elizarov

Tutorial
Solution

1170E - Раздвижные двери

Idea: adedalic

Solution: elizarov

Tutorial
Solution

1170F - Колеса

Idea: MikeMirzayanov, vovuh, pashka

Solution: Benq

Tutorial
Solution

1170G - Разбиение графа

Idea: MikeMirzayanov

Solution: elizarov

Tutorial
Solution

1170H - Максимальная пила

Idea: MikeMirzayanov

Solution: pashka

Tutorial
Solution

1170I - Хорошие подмножества

Idea: MikeMirzayanov

Solution: pashka

Tutorial
Solution
  • Vote: I like it
  • +47
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it +3 Vote: I do not like it

"One can prove the greedy algorith" typo

»
5 years ago, # |
  Vote: I like it +17 Vote: I do not like it

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 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

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