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

Автор DanielB999, история, 13 месяцев назад, По-английски
  • Проголосовать: нравится
  • +41
  • Проголосовать: не нравится

»
13 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Hi!. In the problem K, the checker is correct?

I made my own checker to verify that the toppings I placed are related and also later check that the number of groups with different toppings is >= k

Link of code: https://ideone.com/JpyUC7

  • »
    »
    13 месяцев назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится

    I guess it's because the number of different toppings should be exactly equal to K

    By the way, I'm curious about the solution for this problem

    • »
      »
      »
      13 месяцев назад, # ^ |
        Проголосовать: нравится +14 Проголосовать: не нравится

      This was my solution for problem K:

      K
    • »
      »
      »
      13 месяцев назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      F for my reading comprehension in the regional XD

»
13 месяцев назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

I decided to write an unofficial editorial of the contest. It contains hints/solutions of all the problems. Feel free to check it here :)

»
13 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

In problem A, we are told that $$$x_i, y_i \neq i$$$ and $$$x_i \neq y_i$$$ but when verifying this condition with an assert, it is not fulfilled in some cases