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

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

Selamat pagi Codeforces!

We are excited to invite you to TLX Regular Open Contest #30!

Key details:

Many thanks to:

Please register for the contest or else rama_pang will drink all your milk 😋🥛.

UPD: the contest is over!

Congratulations to the top 5:

  1. Benq (perfect score)
  2. maroonrk
  3. hos.lyric
  4. hitonanode
  5. nuip

Congratulations to our first solvers:

Also, congratulations to Phantom_Performer for getting the 400000-th submission!

You can upsolve the problem here. Editorial is available in the upsolve link!

Thank you for participating and see you on the next contest!

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

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

How to register

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

    You should go to the contest link in TLX and register there. You need to login to register. If you have not made a TLX account before, you can easily make one there.

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

TLX Regular Open Contest

Is the TOKI Regular Open Contest being renamed TLX Regular Open Contest?

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

What's the contest difficulty when compared to a cf round? Div2 ? Div3? Div1?Div1+Div2?Div4?

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

Friendly reminder that the contest will start in less than 90 minutes!

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

Just curious, is there no tester for TROC or are they hidden?

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

E: dynamic connectivity is dead

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

How to solve E without LCA and segment trees?

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

    I used Zobrist Hashing code

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

    It is possible solve it deterministically only using DSU.

    For the second part of the problem where we need to mark roads on a path from $$$A_i$$$ to $$$B_i$$$, we will merge vertices $$$u$$$ and $$$v$$$ if edge $$$(u,v)$$$ is marked on the DSU. When we add a new father from $$$A_i$$$ to $$$B_i$$$, we need to mark all unmarked paths from $$$A_i$$$ to $$$B_i$$$. This can be done quickly using DSU if in each DSU component, we store the highest vertex. This way we can quickly to the highest unmarked edge.

    code: https://tlx.toki.id/problems/troc-30/E/submissions/1289709

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

      I wrote MST for the initial graph, and then deleted edges that were not necessary. I ran dfs on MST, lets say I am at a node ND and K is a son of ND, then look at a subtree starting with K, if in this subtree there is no node that needs to pass ND on it's way to it's "interesting" node then you can delete ND-K edge.

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

Lucky me :)