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

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

We will hold AtCoder Regular Contest 217.

We are looking forward to your participation!

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

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

first time for ARC!

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

Seems like D's trick is same as the one used in "896E Welcome home, Chtholly"

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

In B , how to find f(P)=2^N-1-S ? Why do you consider S=sigma 2^k?

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

    Consider $$$g(i)$$$ = how many times $$$i$$$ is moved. we have the following recurrence: $$$g(i) = g(i+1) + g(i+2) + \ldots + g(n)$$$ + [It is possible to move $$$i$$$ before anything bigger than $$$i$$$ is moved/ $$$i$$$ is not a high element].

    We want $$$\sum g(i)$$$, to compute this we observe that $$$i$$$ contributes $$$2^{i-1}$$$ to the sum if it is a high element. Counting the complement of this is easier so we instead compute sum of $$$2^{i-1}$$$ such that $$$i$$$ is a high element.

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

Haha I believed the best method to get the largest $$$f$$$ in B is always move the rightest movable element and wrote a huge classification discussion which wasted me about one hour and finally became fake. I think C is easier than B.

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

https://atcoder.jp/contests/arc217/submissions/74718128

AC just 1 minute after the contest ended

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

Are there any Chinese people?