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

Автор Kuroni, история, 4 года назад, По-английски

Hello Codeforces o(≧∇≦o) I'm glad to introduce you to Codeforces Round 616 (Div. 1) and Codeforces Round 616 (Div. 2), which will take place on Feb/02/2020 17:05 (Moscow time).

Each division will contain 6 problems, and you will have 2.5 hours to solve them. There might be interactive problems, feel free to learn about them here. The problems were created by 265918, Ari, Kuroni, gamegame, and hugopm.

Now, here are some people I would love to mention:

The statements were made as clear as possible for your best experiences. Moreover, we sneakily included a theme in the problemset, and each problem will have an easter egg that is the clue to the theme. If you have AC'd every problem, be sure to search for the theme(*´▽`*)

Additionally, most of us are in a Discord server dedicated to competitive programming called "AC" (this is also the motto of this contest). We will be on the server after the contest to discuss the problems with you. You can find the server here!

I wish you all have good luck and high ratings ( ´ ▽ ` )ノ

UPD1: Here is the score distribution:

  • Div. 2: 500 1000 1500 2000 2750 3000

  • Div. 1: 500 1000 1750 2500 3000 3250

UPD2: Here is the editorial, including easter egg solutions!

UPD3: Thank you everyone for participating :D Here are the final standings:

Div. 1:

  1. tourist

  2. fateice

  3. ksun48

  4. Um_nik

  5. WZYYN

Div. 2:

  1. IZONE

  2. Infoshoc

  3. CouponKaka-ChutteNahiHai

  4. lzh12139

  5. liqing

Thank you everyone and I hope to see you again!

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

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

hope for SHORT STATEMENT problems and hope for strong pretests !

good luck every body !

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

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

smh weeb announcement

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

you're lacking in newbie testers :\

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

Kuroni oRZ.

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

Highly recommended for participation. Both for the weeb and the problemset.

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

2.5 hours or 2 hours?

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

    2.5, the round's information will be updated soon.

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

      It seems you forgot to update the round's information in the calendar. There are two CF R 616 (Div. 1) with different duration.

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

Thanks guys for making new problems. By the way

Happy Lunar New Year from Vietnam !
»
4 года назад, # |
Rev. 2   Проголосовать: нравится +31 Проголосовать: не нравится

Kuroni How kind of you to come to #purgatory to discuss the problems with noobs like us! You are great sir!

P.S: #purgatory in AC is one of my favourite places everrrr.

»
4 года назад, # |
Rev. 4   Проголосовать: нравится -40 Проголосовать: не нравится

evadava round orz bruh wrong announcement

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

Can't recommend the problems enough!

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

""AC" (this is also the motto of this contest)"

hmm

yes

the floor here is made out of floor

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

why there is no a newbie tester?

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

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

This blog is more colourful than my life.

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

How come the first one "Mike just messages me at random times (although I usually decline ...)" of Benq's comments is gone? Is that a codeforces bug?

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

Hi my fellow weeb-kun :')

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

Contest 616 is a palindrome contest on 0202 2020

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

I hope to be an expert after this contest.

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

Div 1 A == ( Div 2 C or Div 2 D ) ?

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

Competing on birthday! :)

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

Today is very special day. The date is 02-02-2020 (02022020) which is a palindrome number. Hope everyone will do well in contest on this day. Happy coding.

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

Palindrome day(0202 2020) and Palindrome contest number(616) on the 10th birthday of codeforces :)

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

This is gonna be the first contest on Codeforces gamma.

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

Happy birthday Codeforces!

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

All the best everyone! Looking forwards to some really amazing contests this February!

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

I hate interactive problems :')

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

Unusual 2.5h

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

Auto comment: topic has been updated by Kuroni (previous revision, new revision, compare).

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

Yes, this is palindrome roundxD.

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

There are more than 1400 participants in Div.1 contest for the first time.

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

I feel like I'll solve 1-2 problems again. Well, I don't care, I'm in.

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

Oh my Contribution :O

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

How to solve more than 1 problem in these contest :( I think I need a Div 4 or Div 5 for myself :|

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

Hope to become expert today. Pray for me. Eagerly waiting to see that blue color in own profile

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

Apparently I cannot write trivial programs (div 2 #1). Why even bother...

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

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

How to solve D2-E? Was this DSU + small to big + 2-coloring?

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

How to solve C?

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

    Bruteforce on how many people will you force to take from the front, then bruteforce on how many people may take from front, and each possible outcome see what is the maximum thing you can take.

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

How to solve Div1.C?

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

    for k times remove 0 to k elements from left, and k to 0 elements from the right.

    From the remaining queue they can remove arbitrarily elements until position m is reached. Brute force all such pairs for min(max(left, right)).

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

Auto comment: topic has been updated by Kuroni (previous revision, new revision, compare).

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

even though i am a registered contestant,whenever i submit a solution it says you are not registered! I dont know whats happening! any help will be appreciated!

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

    I believe there is another contestant in division 1 with the same issue. This is most likely a bug in the platform.

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

Very fast system testing :)

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

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

How to solve Div2 B?

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

Is $$$\mathcal{O}(n \sqrt{n} \log n)$$$ fast enough to pass in E?

The total number of edges that change in the tree over the course of the algorithm is $$$\mathcal{O}(n \sqrt n)$$$, which can be proven with the potential function $$$P = \sum_{i = 1}^{n} |T_{i}|$$$ where $$$T_{i}$$$ is the subtree of node $$$i$$$:

The potential increases by at most $$$n$$$ at every step, and if at some step we change $$$2k$$$ edges, then the potential decreases by $$$\binom{2k}{2} - 2\binom{k}{2} \approx \frac{1}{2} \binom{k}{2}$$$, which is quadratic in $$$k$$$. If $$$\sum_{i = 1}^{n} k_{i}^{2} \leq n^{2}$$$, then $$$\sum_{i = 1}^{n} k_{i} \leq n \sqrt{n}$$$.

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

I have a question: I sent problem B in the 20th minute and then I sent another solution in time 2:40:00 but the time it gives me is the second one, it should not be the shortest time to be accepted?

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

    If your later solution passes pretest, it overrides the earlier one (that one would be considered "Skipped" thenceforth).

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

What was the purpose of the word "fixed" in the hack format in Div1D?

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

ksun48 how did you come up with $$$700$$$? I've tried $$$600$$$, which isn't enough, but $$$700$$$ is ok. Did you guess that?

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

In Div2C 6 4 2 2 9 2 3 8 5 if you not control first person then if first person chooses 2 then you will force other two to take 5 and 8 respectively and you will end up at 9 if first person chooses 5 then you will force other two to take 2 and 8 respectively and you will end up at 9 so in both cases you will get x as atleast 9. why it is not possible?

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

    Statement says you have to choose it before the process starts

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

      could you explain it :D ?

      i think this statement doesn't add any new info ? what if i choose it correct to reach the same answer as Ssgss

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

        This approach requires you to know the choice taken by the first person. It's possible that before the process starts you persuade them to take 5, 8 but first person ends up taking 3, which forces you to take 2.

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

          so should i force the first person ?

          edited: after a while i got it. but there is something => "you have to choose it before the process starts" it equals persuade first min(k,m-1) doesn't it ?

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

The theme of the contest was really good.

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

Can anyone tell me why this is giving WA. Here's the Solution .Thank You in advance.

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

In problem c for test case 1 6 4 2 2 9 2 3 8 5 let 1st person be the not-controlled person, and 2nd,3rd be the controlled persons, so after first person finishes scenario will be - 9 2 3 8 5 or 2 9 2 3 8 now for 2nd and 3rd person i can well control them to choose elements such that i get 9 in both cases, shouldn`t 9 be the answer then..

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

    "Before the process starts, you may ..."

    "Once the process starts, you cannot persuade any more people, and you cannot change the choices for the people you already persuaded."

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

When will ratings get updated?

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

is something wrong with ratings?

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

I was cyan when I was taking this contest and before I became blue I registered for the upcoming Div.3 contest and now in the registrants list my Handle doesn't have a little star next to it and I don't think I'm the only one So my question is that is the contest gonna be rated for people like me or not ?

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

Such a waste of time !! Only if else based problems

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

The return of the king! MWM couldn't stop tourist to win the round, now poor MiFaFaOvO is second.

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

I wanted to sleep well at nights... Seems I won't. :)

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

In a palindromic round(#616) on a palindromic day(20200202), my rating changed from a palindrome(2882) into another palindrome(2992). A lovely coincidence!

I hope it would have been 3003 instead of 2992, though...

Anyway: Happy birthday, Codeforces! (Perhaps it's a bit late? ...

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

TOO ( ´ ▽ ` )ノ MANY (*´▽`*) EMOJI ヽ(〃・ω・)ノ IN :D THE o(≧∇≦o) CONTEST ( ͡° ͜ʖ ͡°)

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

Is there anyway to get the "system testing" test cases downloaded after the contest. I mean all test cases ..

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

Oops, my bad luck on problem A :( Passed test 10 on pretests, failed the same test on the system test.

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

Div1C in $$$O(n ^ 2)$$$ : 70081179.

It is $$$O(n ^ 2)$$$ bc function "add" sometimes works in $$$O(size + b.size)$$$.