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

Автор gKseni, 6 лет назад, По-русски

19-го апреля 2018 г. в 05:00 (московское время) начнется главное событие года в мире спортивного программирования — финал командного студенческого чемпионата мира ACM-ICPC 2018!

Позади открытие и пробные туры. 140 команд со всего мира собрались в Пекине (Китай), чтобы определить — кто из них станет чемпионом мира, кто получит медали чемпионата.

Масштаб проведения чемпионата этого сезона поражает воображение. Всего во всех отборочных этапах чемпионата приняли участие 49935 студентов из 3098 университетов 111 стран мира 6 континентов! В этом году стран стало на 8 больше! В зависимости от региона команды прошли квалификации, четвертьфиналы, локальные отборы, региональные соревнования. Лучшие 140 команд приехали в Пекин для участия в Финале.

Болейте за своих земляков, любимые команды и просто сопереживайте участникам!

Codeforces желает командам показать яркий, интересный, полный борьбы контест. Желаем находить красивые решения, писать без багов и побольше радоваться решенным задачам!

Болеем по ссылкам:

Трансляция на русском языке:
Трансляция на английском языке:
Трансляция от легендарных Petr, tourist, Endagorion:
Смотреть прямую трансляцию на twitch.tv
Трансляция от легендарных jqdai0815, rng_58, FizzyDavid:
Смотреть прямую трансляцию на live.bilibili.com
Церемония закрытия:
  • Проголосовать: нравится
  • +582
  • Проголосовать: не нравится

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

ACM ICPC World Finals 2018 is been an amazing experience so far thanks to hard and good work of ACM!

Good luck to every contestant at the contest, hope we all can do our best!

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

Does the contest start at 1:00 UTC? The link shows that it starts at 2:00 UTC

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

    I think it starts at 2:00 UTC, since in the official schedule there is an entry like "Contestants enter contest area", from 1:20 UTC to 1:40 UTC

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

Полируем щиты, вспоминаем названия смайлов твича, достаем заготовки с гусями...

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

All Jordanians wish luck to you and your team Hiasat :)

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

ICPC is my aim, my destiny, my happiness...

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

Is it rated?

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

bilibili.com instead of Twitch because of Great Firewall of China?

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

    Twitch is not really blocked. It's just slow and maybe sometimes unstable, but that's true for almost all foreign sites. Also I think non-English streamers generally don't like to use Twitch.

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

приняли участие 49935 студентов из 3098 университетов 111 стран мира 6 континентов!

Все ведь помнят, что континенты это Евразия, Северная Америка, Южная Америка, Австралия, Африка и Антарктида? Кто из последнего? =)

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

    Все ведь помнят, что "континент" — это не "материк", и их можно делить по-разному =)

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

May be someday I become live at of Olympics of programming :p

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

Will there be a mirror contest somewhere to try the problems?

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

that feeling, when you suppose that battle between two teams of LGMs will be much hotter than the one among official contestants.

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

Is It Rated?

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

Best of luck Dracarys and TeamX from BUET and SUST respectively. Hope you will do something special in ranklist. Bangladeshis eyes are on you.

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

I wonder if there are any online mirror contests today.

BTW, good luck to all the participants !

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

Watch the live translation on twitch.tv

PepeHands

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

Жаль, что из-за буйства РКН твич работает не у всех и не всегда.

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

Solutions analysis can be found in https://icpc.baylor.edu/finals-solutions-2018/.

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

Congratulations to Moscow SU!

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

It is a common knowledge that naive O(n3) algorithm for computing Voronoi diagrams in practice works in something like O(n2), but I've never heard any proofs. I managed to get OK on G with it. Does anyone know any proof of this fact? It seems very logical and intuitive, but I'd like to know a strict proof.

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

    A relatively simple voronoi diagram algorithm is just n^2 log n using a stack for everyone point and sorting the bisecting lines around it. I just used my Delaunnay triangulation code to build the voronoi diagrams in n log n then clip the polygon with it.

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

i am wondering what colorscheme of msu's vim???

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

Moscow SU has solved 9 problems and it seems won the World Finals!

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

Где можно найти ссылку на церемонию закрытия?

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

They have a huge bug!

If a university appears more than once, it means that all but the last submissions are not correct (otherwise they don't show them in the list of pending runs).

Did anyone else notice that?

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

    Nice catch

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

      Any information about where next WF is going to be???

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

        India

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

        According to this blog post, it will be held in Kochi (India).

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

        I heard it will be in Portugal, but it is not announced officially yet

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

        There has not been any official announcement during the closing ceremony. According to Bill Poucher, the most likely place is Porto, followed by Russia and the Black Sea.

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

        I had a quick chat with Bill Poucher. It is far from official, but Portugal, Russia, Jordan and Australia are all within the realm of possibilities (in no particular order).

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

So many issues with the system and in general, the ceremony. What a disgrace.

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

Breaking news!

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

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

Which problems are set by SnapDragon, if any?

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

Go Moscow Go!
Congratulations Lomonosov University!
Sad for Warsaw University and ITMO.

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

where i can find a tutorial? Is there some available?

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

I will never understand the person who makes them all act like that in the video introducing the teams.

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

    Teams are asked to be happy / celebrate something for a few seconds. It's supposed to be shown in the broadcast when a team solves a problem.

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

      Oh, so they have no justification for the awkwardness :D

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

        Well, some teams (including mine) got a description along the lines of: "Alright now do a goofy one, like move your hands around or something." Pretty much impossible not to be awkward with that description.

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

кто знает какой у Макеева рейтинг в дотке?

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

Where will be the next world finals ?

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

Sad for ITMO :(

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

Where's an Editorial of WF Tasks??

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

    I assume Per and Onufry will post their usual solution sketches soon, and hopefully ICPCNews will post videos. I put my solutions from test-solving up here, but note that they're not always optimal (or even good) algorithms. :)

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

      I would say the problem set was not that interesting as it could be. Do you consider adding new strong authors to judges? I think NEERC problemset, for example, was more interesting and balanced, although the world finals is a more prestigious competition.

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

        World Finals have comporatively open problem proposal stage

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

          How does one participate in it?

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

            Call for problems is sent around September, all TDs at the very least should receive it and are free to forward it to anyone

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

              So nobody sends them interesting problems, or they declined almost all of them in this year?

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

                I do not think problems were bad or uninteresting, I think they are not so good as a set

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

                  IMHO they should invite several experienced sp in judge team, not caring about suggested they problems or not. Current judges easily could add to problemset well-known problem or choose bad TL.

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

                  I would say Per Austin, SnapDragon and onufryw are experienced enough to name a few. I do not think there was a year recently where judge team had not included several well known names in community

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

                  I don't agree. Both of them are good as authors of problems, but they are not on the edge now. I am sure that they haven't seen recent opencup, codeforces, topcoder, codechef, hackerrank, hackerearth etc problems.

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

    The solution sketches and analyst solution videos have been posted.

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

      Problem C is very cool, but... Did someone expect C or J to be solved during the contest? If not, what's the point in making contest on 9 problems only?

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

        C is actually not hard "merge-sets"-kind problem. I had correct solution idea during the contest, but with our problems with other tasks we had no chances to implement it (and we were a bit afraid of trying, because nobody did it).

        It seems that the editorial describes the same solution, but in a bit hard way. My idea was to keep pathes to the positive sources that are used, and are not used, in two multisets, with values equal to cost of using that sources or removing that sources. It's actually like a fast simulation of mincost-flow on the tree. The implementation is really simple: https://ideone.com/4NOAx0 . Btw, with Pairing Heap it will be .

        And I do not understand why none of the top teams solved it.

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

          Hm, yes, we had a similar idea, but didn't have time to think it out. Now the problem doesn't seem that hard. I think the reason top teams did not solve it is quite similar to yours — previous by hardness tasks required careful implementation and quite a lot of debugging.

          Btw, in Russian translation there was information from the judges, that two hardest problems would most probably remain unsolved — so it may have been done intentionally.

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

        We knew that Problems C and J were the two hardest in the set. I can't speak for all the judges, but I did expect some of the top teams would be able to solve C. Of course, the dilemma is always whether it's worth it to try a hard problem nobody else has solved when you've still got one of the 9 proven problems to work on.

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

      In explanation of J had volume up two times. Was it possible in J to bruteforce an answer by sending hundreds of solutions with different formulas?

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

А нельзя в русскоязычную трансляцию поставить человека, который не будет оскорблять коллег-участников из своего же университета? Ну и, если получится, который хорошо разбирается в том, что комментирует?

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

    Александр, я с удовольствием готов выслушать Ваши претензии, но агрументированные, чтобы я мог что-то подправить. Лучше сделать это в личку.

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

    .

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

    Я просто хочу отметить, что трансляции, в особенности неанглоязычные, предназначены не для участников, а для тех, кто хочет информированно поболеть. Если убрать из трансляции все эмоции, то она станет бесконечно скучна

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

      Оскорбления и неверные-некорректные выводы =/= эмоции

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

        Я не считаю "пролетели как фанера над Парижем" оскорблением. А неверные выводы, конечно, будут в любом случае

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

          Где этот момент был? Мне просто лень весь видос просматривать

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

            Я сам русскую трансляцию не смотрел, был в этот момент немножко занят :)

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

          "Е лёгкая, все дебилы, что не решили" -- пусть комментатор и цитировал кого-то другого, всё же можно было бы сделать это и не дословно

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

            Да, тут, пожалуй, жестковато. Но это вопрос стиля, и у Виталика он, безусловно, есть

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

    Лично мне в трансляции не понравилось скорее то, что ведущий активно поддерживает команды из региона Northern Eurasia, а успехи других команд, наоборот, комментирует так, как будто это что-то нежелательное. Мне кажется, что ведущий трансляции должен быть более нейтральным.

    Ну и называть в официальной трансляции мирового чемпионата Виталика Виталиком как-то несерьёзно.

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

      Это было by design — участники языковых трансляций должны были болеть за своих. Английская студия была рядом с китайской, и мы чуть не оглохли, когда Пекин вышел в лидеры

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

      Воспринимать Виталика серьезно вообще очень трудно.

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

В русскоязычной трансляции понравелись коментаторы. Только девушка не так хорошо коментировала. Классно, что трансляция вообще существует, и процесс кодирования показывают, и как команды ожидают вердиктов.

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

Can someone please describe how they constructed the required tree for Problem K?

The solution video for problem K doesn't explain clearly how the resultant tree is supposed to be constructed.

I was thinking of an approach where we first add edges for vertices with degree 1, and then keep adding edges in increasing order of degree until the required sum of degrees is reached. We ensure that no cycles are formed using DSU. I don't have a proof for whether this would work or not.

Another approach that I had in mind was to iterate through nodes in decreasing order of degree and remove edges one by one ensuring that:

  1. the graph is connected
  2. sum of degrees is 2(N - 1)

I have no idea about how we should decide which edge to remove at each step. Petr, in his live stream, also seems to use a similar approach. He did not use DSU but said something like there is no chance of the graph getting disconnected in any case — but that part wasn't very clear in the stream.

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

    I would suggest looking at this.

    There are two ways to construct the tree that I know of.

    The first way: take a node with degree one and connect it to the node with the highest degree at the moment. Decrease the degrees accordingly and repeat n - 1 times. There are two observations that make this possible. The first is that if we are given that a tree can be built, then there is a node with a degree of one. That's because if there were no nodes with degree one then the sum of degrees would be at least 2n while any tree has degree sum of 2n - 2. The second is that after connecting that edge, we have a new degree sum of 2n - 4 = 2(n - 1) - 2 meaning that we reduced the problem to building a tree on n - 1 nodes which we assume can be done (the inductive argument should be made the other way round but I will omit it since it is of little relevance).

    The second way: sort the nodes in decreasing order of degree. Make the first one the root. Maintain a list of "available" nodes that can still have neighbors. On each step take the next node and connect it to a node from the list. Reduce the degrees appropriately, remove a node from the list, and add a new node to the list if necessary. It's not hard to see that after each step the graph on the processed nodes is indeed a tree. We are left to show that on each step the list of "available" is non-empty. Assume it is empty, that means that on the previous step we added a node with a degree of one since, otherwise, that last added node would have been added to the list of "available" nodes after reducing its degree by one. Since we sorted the degrees, that means the rest of the nodes that have not been processed have a degree of one as well. Let's say that we processed k nodes so far. Since those k nodes form a tree and there are no "available" nodes among them, the original sum of their degrees is 2k - 2. The sum of the rest n - k nodes is n - k because each of them has a degree of one. So the total degree sum is n + k - 2. Observe that n + k - 2 < 2n - 2 whenever k is not n. That means that the only time that the list of "available" nodes becomes empty is when k = n meaning that we have processed the whole tree.

    The first solution, in my opinion, is easier to understand. However, the second one is easier to code.

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

    My solution: Solve the case N ≤ 2 manually. Otherwise there is at least one non-leaf vertex and at least two leaf vertices. Take all non-leaf vertices and form a chain. Then, to each vertex in a chain, connect enough leaves to it to increase its degree.