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

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

We will hold AtCoder Grand Contest 070. This contest counts for GP30 scores.

The point values will be 600-1000-1000-1800-1800.

We are looking forward to your participation!

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

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

Because of some serious problems, this contest might be the last atcoder contest this year. So please treasure this precious oppotunity!

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

Wow, very cute A! Good old $$$1/7=0.(142857)$$$ :D (but with 1/1019 this time)

B seems great too, though I couldn't figure it out even though I got a lot of good observations. I can prove that the result without forbidding anything is $$$2n^n$$$, but it still seems like a long way to go...

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

What made you think of decimal expansion when solving A? I OEIS'ed it :(

I brute forced when X and 2*X have a lot of digits in common, and searched the digit sequence in OEIS. Found decimal expansion of 19

It also referred me here, to try 383 after 19: magic-square-something

Then I wrote the checker to see if all multiples are present, and indeed 19 and 383 worked.

Next item on that list was 32327, which is too big. So I just guessed that maybe the first primes after 1000 would work instead. 1009 and 1013 didn't work, but 1019 worked. Proof by AC!

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

    I just thought a number like 142857 had very good property for the problem, so I searched on Wikipedia. There, I found a link to Cyclic numbers—everything you need is on that page.

    I can't imagine how to solve the problem without the Internet.

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

      Well, I would say that the Internet is not crucial. The phenomenon of decimal expansion of $$$\frac{1}{7}$$$ was certainly fascinating to me, so it is not such a big surprise that people may understand why that happens beforehand, and even if they don't, then it is not that hard to derive on your own (I was somewhere in between). Or, even if you don't understand, you may just check expansions of $$$\frac{1}{n}$$$ for $$$n=1001, 1002, \ldots$$$ and see which one will work

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

who is gblaasnicse?

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

Problem C can also be solved somewhat easily if you google the right keywords and dig out this paper.

Solution

Thanks for the contest! This is probably the highest delta I've ever received for solving a single problem.

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

I have a question for the editorial of the problem B. Suppose $$$n = 2, p_2 = 1$$$ and $$$G = \{1 \rightarrow 2, 2 \rightarrow 2\}$$$. Then $$$f(G, \emptyset) = 1, f(G, \{1\}) = 0, f(G, \{2\}) = 1, f(G, \{1, 2\}) = 1$$$ and the sum will be $$$3$$$ instead of $$$2$$$, what am I missing ? For $$$S = \{1, 2\}$$$ "consists solely of several vertex-disjoint cycles." does not work.

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

Thanks a lot for the round!

My screencast with mumbling and a short recap of the solutions at the end. Unfortunately my docking station stopped working about 20 minutes before the end, so there are a few minutes that are cut out, and afterwards there is no screencast, only camera.

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

In problem A,I use 1013 as p,but I got WA.I can't figure out why?

Submissions

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

In Problem C's Editorial why "(the number of ways to reach (b−1,a+1,x) with BX immediately after the diagonal crossing)." needed to be subtracted? I can understand that "BB" is to be subtracted, but why "BX"?