vovuh's blog

By vovuh, history, 6 years ago, In English

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
  • Vote: I like it
  • +47
  • Vote: I do not like it

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

"One can prove the greedy algorith" typo

»
6 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. :(

»
5 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