Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

Автор Kaey, 20 месяцев назад, По-английски

The first round of the IIOT (International Informatics Olympiads in Teams) is starting tomorrow, November 14th 2022! The open contest will be 3 hours USACO-style, starting from 17:30 CET, and ending 27 hours after that. In the meanwhile, you can enjoy our teaser below and try to guess the next eight problems from the hints :)

This contest, of a lower difficulty level than the IOI, is intended for teams of 4 contestants from the same high school (check this post for further details). However, everyone is welcome to participate to the open contests!

If you want to participate, you must:

  1. Visit the contest website: https://mirror.squadre.olinfo.it/
  2. Click the link "register", fill out the form and then click on the register button and then "back to login"
  3. You can now log in with the same username and password you used to sign up
  4. If the login is successful you will be ready to participate, just wait for the contest to start! (and maybe save the page in your bookmarks, so that you can quickly get back to it when the contest begins)
  5. When the contest starts, you will see a red button. Click it when you want to start your 3 hour time window!
  6. The ranking for each contest will be available at https://mirror.squadre.olinfo.it/ranking/ after the start of each contest
  7. The tasks will also be available for training in https://training.olinfo.it/#/tasks/ few days after the contests
  8. Good luck and have fun!

We hope that you will join us or encourage your students to do so!

Tommaso Dossi (on behalf of the Italian IIOT organizers)

  • Проголосовать: нравится
  • +60
  • Проголосовать: не нравится

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

I don't see the teaser, how would we know which number police is this time?

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

All hail the wise mystical tree! (Sumtree)

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

Sorry if I broke cms

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

Since contest is over, can someone share implementation of monopoly problem please?

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

what happened with sumtree?

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

    It's just a virtual tree problem?

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

      Based

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

      I meant what happened with the scoring, my nlogn code got wrong answer in the last subtasks during the contest so my team ended our time frame with 70 points on it, but a few hours later it got updated to 100

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

        Was going to ask this. Many teams' scores suddenly changed. Maybe there was something wrong with tests?

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

        Wait nlogn? I only came up with $$$O(2^5n\log{n})$$$

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

      centroid decomposition crying in the background

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

        centroid decomposition is also a good approach

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

        small to large crying in the background

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

          Could you share your code using small to large?

          • »
            »
            »
            »
            »
            »
            19 месяцев назад, # ^ |
            Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится
            Spoiler
            • »
              »
              »
              »
              »
              »
              »
              19 месяцев назад, # ^ |
                Проголосовать: нравится 0 Проголосовать: не нравится

              So we only need to count for each node in how many pairs it is the lca, which can be done by simply querying each subtree of it in the DS and then adding it to the DS, and in the end querying + adding the node itself.

              could you explain this part in more detail please?

              • »
                »
                »
                »
                »
                »
                »
                »
                19 месяцев назад, # ^ |
                  Проголосовать: нравится 0 Проголосовать: не нравится
                Sure!
  • »
    »
    20 месяцев назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    I wonder if there is an $$$O(n(2^5+\log{n}))$$$ solution hmmm