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

Автор rng_58, история, 8 лет назад, По-английски

AtCoder Grand Contest 005 will be held on Saturday (time). The writer is yosupo.

Contest Link

Contest Announcement

Let's discuss problems after the contest.

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

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

Never mind. I was wrong.

»
8 лет назад, # |
  Проголосовать: нравится -15 Проголосовать: не нравится

It clashes with the ICPC Preparatory Series contest on Codechef. :(

»
8 лет назад, # |
Rev. 3   Проголосовать: нравится +23 Проголосовать: не нравится

I am really interested why all in top 10 are reds except semiexp whose color is green?Is it a bug?

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

    Actually his color is #92D050. If you reach 3200, you can choose your own color (tourist and Petr haven't decided their colors though).

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

I hate FFT :( the modulo is friendly though

Anyway, nice problems!

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

The best thing about AtCoder is trying to read the Japanese editorial using Google Translate.

Edit: My bad, I see the English version now.

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

    There's English editorial below Japanese editorial.

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

      It would be much better to provide editorials in English and Japanese in separate file. I don't like seeing Japanese editorial at the top. Can something be done in this regards? Anyways, Thanks for great contests and well explained editorials.

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

Can someone explain the solution for D better? I'm lost at the Inclusion-Exclusion part (where did the sum come from)

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

Can someone please explain the editorial of D in a different way? I'm having some difficulty understanding it. How is that formula derived? And how to find M(k) in O(n^2) using DP?

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

Sorry for necroposting, but how to solve D in time?

  • »
    »
    6 лет назад, # ^ |
    Rev. 3   Проголосовать: нравится +8 Проголосовать: не нравится

    I think all you do is: notice that the only part of the editorial that needs O(N2) time is computing the Mk. You can compute all Mk for a single path of length l by straightforward combinatorics / dp.

    Let Pl(x) be the polynomial where the coefficient of xk is the number of matchings of size k on a path of size l. Notice that in the graph, all paths are gonna be length l or l + 1 for some l (). To find the overall Mk, this is equivalent to a convolution so you can just compute Pl(x) and Pl + 1(x) for the appropriate l and then raise them to the correct power and multiply. This can all be done by FFT in ,