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

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

AtCoder Grand Contest 007 will be held on Saturday (time). The writer is dreamoon_love_AA.

Contest Link

Contest Announcement

The point values are 200 — 400 — 1000 — 1200 (600) — 1400 — 1500.

Let's discuss problems after the contest.

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

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

dreamoon? Isn't the writer dreamoon_love_AA on Codeforces?

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

Does it support virtual participation?

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

Just curious, will we have contests start at different time?

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

    It seems this is the only slot that is good for both Japan and Europe, so I think all future AGC/ARC will be in this slot. However, some tournament rounds may be held at different time.

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

Great contest, good problems!

A couple of features for the website I would like to propose though: 1) Make it visible which tasks you solved on the "Tasks" page 2) Maybe a chat or comments system so participants can talk after the contest? Since the editorial is in Japanese and I would like to know how to solve the last 2 tasks..

Well done, though, great job!

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

After receiving a WA on D, debugging for a long time, I found out that using "%I64d" to print a long long will get a WA.:( Isn't there any statements about this?

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

    Please email us your handle. We'll change your result for this contest.

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

Feature request: Add option for viewing country standings.

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

Thank you for requests, we are currently busy with CODE FESTIVAL but we'll implement some of them in the future.

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

Can any one please explain solution of C? The editorial is too short to get the full idea. Thanks.

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

    In the original problem the distances were one (so the input takes only one integer N), but it turned out that this version can be solved with OEIS and thus we had to change it to arithmetic sequences.

    For example, suppose that N = 3 and the distances are (1, 1, 1, 1, 1, 1). Let f(1, 1, 1, 1, 1, 1) be the answer of the problem in this case.

    As there are three balls, there are six possibilities in the first step. In the first step, the chosen ball always move by the distance of 1. After this step, the "state" of the balls and holes will be one of the following: (1, 1, 1, 1), (3, 1, 1, 1), (1, 3, 1, 1), (1, 1, 3, 1), (1, 1, 1, 3), (1, 1, 1, 1). The "average" of theses state is (4 / 3, 4 / 3, 4 / 3, 4 / 3). Thus, we get

    f(1, 1, 1, 1, 1, 1) = 1 + f(4 / 3, 4 / 3, 4 / 3, 4 / 3).

    We can prove that when the state is an arithmetic sequence, the expected state after the next step is also an arithmetic sequence. The remaining part is easy I think.

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

      But, if we call the answer g(N, d1, x), you can show that g(N, d1, x) = g(N, d1 + (N - 1 / 2)x, 0) = (d1 + (N - 1 / 2)x)g(N, 1, 0), so it still translates to the problem with all distances one.

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

        Because of that properties, C was still solvable with OEIS. Not what I've tried, but I know someone who got AC with that.

        With brute force we can notice answer = x * f(n) + d1 * g(n), so we can search for f(n) and g(n), which results in something related to http://oeis.org/A001705

        Still, I loved all rest of problems!

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

      My solution doesn't use arthimetic property. For a segment, I compute expected number of ball rolls over. For example, if there are k balls before this segment. Then expected number of ball before rolls over is: .

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

        I know it's been a long while since you've written this comment, but would you mind explaining how you ended up with that formula? In the contest I've tried computing the same thing but I was unable to do it and I thought a lot about it. I think it would be very useful to me to find out how to do it (as this was the way I tried to think it, so this is the path I would have chosen if I were able to finish the reasoning, rather than changing my whole perspective to solve it the same way as them).

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

          For a ball and a segment, you should calculate the probability of the ball rolls over the segment. It relies on balls between them and other ball at opposite side.

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

really desire the english solution :)

anyway, atcoder is very good to me.