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

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

We will hold 【MX-X6/J7】Mengxiong Weekly (Open) on Luogu. This is a Div.1+Div.3 round provided by our collaborator. If you cannot understand Chinese, ChatGPT may be helpful.

We are looking forward to your participation! If you cannot understand Chinese, ChatGPT may be helpful. We are working on establishing an English platform, but it takes time. We plan to complete this task by the end of 2024 or early 2025.

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

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

hope the adminers of luogu will not use their website to play genshine

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

Thanks to MengXiong and Luogu for the quality contest.

qpzc

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

At first I thought the contest looked very early due to different time zones, but it seems that the contest is at 13:30 even in China? Is that a time when Chinese people are usually free? I'd assumed that they would either be at school or work.

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

How to E?

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

    If the operation 3 is global (subtask 3), we can maintain a binary trie (separate by the lowest bit first) with lazy propagation.

    In general, we cut out a subtree, add some value for it, and put it back into another position. We might need to merge it with an existing subtree, but we can just merge them recursively in amorized $$$O(1)$$$ time (potential: number of nodes. reference).

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

Great contest. T2 is really interesting. I stucked in T3.

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

Can we submit after the contest is over ?

If yes, then how ?

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

    It'll have to wait until the administrators add the problems to the main problem archive. After that, one may submit a problem when accessing it from the archive.

    upd. I've bumped the administrator, it should be available now :)

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

I got accepted for Div1F with $$$O(\sqrt{q} (n+q) \log(n+q)^2)$$$ time (in < 1 sec).

When $$$n$$$ is large enough, I checked every vertex which has a monent to have degree $$$\ge n-2$$$. There are $$$O(\min\{ n, q/n \})$$$ such vertices. For each vertex, since I didn't have a suitable link cut tree or something, I calculated the cost with 2 logs using offline dynamic connectivity. I feel like it might be as fast as 1 log.

Is it indeed that fast or there are not many tests with about $$$\sqrt{q}$$$ key vertices?

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

    Indeed, I did not anticipate this solution and therefore most tests (unfortunately) have $$$n\geq 10^4$$$. I think I had put in a few tests with something around $$$n=500, q=3\times 10^5$$$ (and I switched root every $$$3n$$$ operations or so) just in case, but it was not specially constructed against this solution, so the amount of key vertices may still be small.

    The reason for the TL to be 5s is that one of the testers wrote a self adjusting top tree which needs ~4s, and none of our testers (nor me) thought of anything between $$$O((n+q)\log^2n)$$$ and $$$O(nq)$$$.

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

Is there an editorial for these problems ?

If yes, where can I find it ?

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

edit commented on wrong post

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

Sorry for commenting other contest, but are there something wrong happening on luogu? The server response is currently very slow.