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

Автор dario2994, 3 года назад, По-английски

The European Championship 2024 will take place on the 24th of March in Prague. The top teams from the European ICPC regionals CERC, NWERC, SEERC, SWERC will compete for the title of European champions. It is the first edition of this ICPC super-regional.

The mirror contest European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) will be held on Codeforces at Mar/24/2024 13:00 (Moscow time) and will last 5 hours.

The mirror contest will contain the same problems as the official competition.

I am the chief judge for the competition and I want to thank:

  • The amazing set of judges who proposed and prepared the problems: antontrygubO_o, bicsi, Giove, Martin Kacer, MZuenni, Petr.
  • Our beloved tester ksun48 who showed us that our perception of the difficulties was not exactly spot on...
  • Our beloved proofreader Philae for proofreading the statements.
  • Everyone involved in the organization of EUC. In particular our director Boba Mannová, and Fernando Silva, Václav Herman, Ondřej Votava, Jan Kubr, Jan Baier.
  • The developers of DOMjudge, the contest system used in the official contest.
  • MikeMirzayanov for Polygon (that we used to prepare the problems) and for letting us host the mirror on Codeforces.

I invite you to participate in the contest and I hope that you will like the problems.

On the difficulty
The contest features problems with difficulties from div1A to div1E. It should be enjoyable for many, and challenging even for the strongest teams in the world.

Rules

  1. The contest is unrated, so your codeforces rating will not be affected.
  2. The scoring is ICPC-style: teams are first sorted by number of problems solved, then the time-penalty is used as a tie-break. An incorrect submission gives a 20 minutes penalty.
  3. We encourage participation as a team.
  4. If you are participating in a team, we encourage you to use only one computer for coding the solutions (as in an ICPC contest). Regarding using templates, googling, and copy-pasting code: feel free to do it.
Rationale of rule 4.

UPDATE: We hope you liked the problems!

Congratulations to the winners, and especially to the first two teams for AK:

  1. dw my perception of the difficulties was not exactly spot on: tourist, ecnerwala.
  2. xinyoudui: Crysfly, zhoukangyang, EvenImage
  3. MIPT: Yolki-palki: Tikhon228, Pechalka, Kapt
  4. Captain take me!: crazy_sea, A_zjzj, 275307894a
  5. Beyond Three Wolves: Kevin114514, CrTsIr, Gellyfish
  6. HSE: FFTilted: Kirill22, Ormlis

We uploaded the editorial of the contest.

Tune in to ICPCLive to see the closing ceremony and find out how the onsite teams did at 18:00 CET!

UPDATE 2:

Congratulations to the medalists of the onsite contest:

  1. Warsaw Eagles 2024 — University of Warsaw (the only team with 9 problems)
  2. Zagreb 1 — University of Zagreb
  3. KNU_0_GB_RAM — Taras Shevchenko National University of Kyiv
  4. ELTE 1 — Eötvös Loránd University
  5. UWr 1 — University of Wroclaw
  6. ENS Ulm 1 — École Normale Supérieure de Paris
  • Проголосовать: нравится
  • +383
  • Проголосовать: не нравится

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

How many problems should we expect there to be?

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

Is there a ranking

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

Is there has a prize for winners

»
3 года назад, скрыть # |
← Rev. 2  
Проголосовать: нравится -33 Проголосовать: не нравится

[deleted]

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

Conflict with ARC. sad

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

please share the editorial link.

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

Life is so unfair... 8 problems solved... context, I really hope this situation changes next year...

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

How to solve ABCDEFGHIJK?

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

Will we ever get rid of the 'proof by accepted' problems such as this problem K? I've been waiting to hear the solution/proof of it in the problem analysis -- getting that "you should just do the thing you thought you should do and it will pass, proof by accepted, proof left as an exercise to the reader". :(

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

    Proof will be in editorial published on CF. I skipped it because there wouldn't be time to go over other problems if I covered it, sorry.

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

      Thank you, the editorial explains it perfectly and it is a nice problem overall; but a side thing I do not personally like is that I can bet that a good part of teams who have solved it have no idea (or at least didn't waste their time) to prove it. It is just something that looks like it could be a solution + seeing a number of accepted solutions what implies that the idea is correct. That might also explain a relatively large number of solves onsite versus a relatively small number of solves on the CF mirror.

      Our team came up with the same proposed idea, thought that it might work but honestly no idea whether or not it does, and we literally had a comment 'If we were onsite we'd submit this for sure, but no point in randomly trying it on a mirror'. I just personally don't like that, nothing more.

      Thanks for the reply and thanks for the fun contest overall!

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

    Idk what solution was presented in the editorial but I know how to prove my solution. There is a triangle if and only if each side has a length strictly smaller than $$$s := \sum x_i / 2$$$. Say, each side should be of length at most $$$t = floor((s-1)/2)$$$ (call a set valid if its sum is at most $$$t$$$).

    W.l.o.g. assume $$$n_a \le n_b \le n_c$$$. Then we have two conditions when the answer is no: 1. the sum of the smallest $$$n_c$$$ elements is larger than $$$t$$$. 2. the sum of the smallest $$$n_a - 1$$$ elements and the largest one is larger than $$$t$$$.

    In the first case, it is impossible to have anything smaller in set $$$C$$$, and in the second case, it is impossible to have the set containing the largest element to be any smaller.

    In all other cases, the answer is yes. We first start with the following configuration: - Set $$$A$$$ consists of $$$n_a - 1$$$ smallest elements and the largest element (let this largest element be $$$m$$$). - All other elements are distributed arbitrarily among $$$B$$$ and $$$C$$$.

    Note that due to our no-preconditions, we know that set A is already valid. If B and C are also valid, we are done. Otherwise, w.l.o.g. assume that C is invalid. Then we perform a sequence of swaps in which we step-by-step decrease the sum of elements in C while preserving the fact that B and A stay valid.

    If $$$C.max \gt B.min$$$, we swap C.max and B.min. It decreases the sum in C. Note that B is still valid as $$$A$$$ contains $$$m$$$, and thus $$$sum_A \ge m$$$, so $$$sum_B + C.max - B.min \le (s - sum_C - sum_A) + C.max - 1 \le (s / 2 - C.max) + C.max - 1 \lt s / 2$$$, where $$$C.max \le m$$$. Hence, all sets stay valid. Otherwise, if $$$C.max \lt = B.min$$$ and $$$C.max \gt A.min$$$, we swap C.max and B.min. As $$$B.min \gt = C.max$$$, the same arguments apply. Finally, if none of these two conditions apply, we have $$$C.max \gt A.min, B.min$$$. Hence, $$$C$$$ consists of $$$n_c$$$ smallest elements out of all and is still too large. It contradicts the first no-case.

    Therefore, we can always perform an operation. Note that the largest element always stays in A as we can only swap some element that is strictly smaller than $$$C.max$$$. Hence, such an operation is always applicable. Furthermore, note that $$$C.max$$$ is non-increasing, and hence when we swaped some value away, it will never come back to $$$C$$$. We derive that the number of swaps is limited by $$$n$$$. Performing these swaps is easy.

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

I got AC on F, but I am not sure my solution has the right time complexity.

What am I doing is I iterate over the common bit of the pair and notice that now we only want to find 2 masks such that one is not a submask of the other. I am doing this by brute force ( trying 2 adjacent masks after sorting by length ). Now if I don't find a solution assume A is a submask of B, then I can discard B as a candidate for all bits that A and B share ( because for those, A is clearly better ).

Can someone try to uphack this?

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

We can't see other's submissions (codes) now, could you allow to view other submissions?

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

tourist is winning rounds, back to top ig

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

Fuck your no flags policy

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

There was an original problem of F on luogu: https://www.luogu.com.cn/problem/P8252

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

orz

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

My rating is higher than tourist

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

Please add editorial link in Contest materials

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

Didn't find any Russian team from the ranking. EUC doesn't include Russian?

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

The organisation of the event was amazing! Thank you so much!

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

Problem I is very similar to COCI '22 Contest 1 #3 Berilij

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

dario2994 Where is possible to download test cases ?

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

I used centroid to solve C :) my submission: 270131979