About 2031C (Penchick and BBQ Buns, problem C of CF Round 987), and extra challenges

Revision en11, by ACGN, 2024-11-17 03:56:39

Author of the problem 2031C - Пенчик и булочки барбекю here, hope you enjoyed the contest yesterday (Almost exactly 24 hours ago...)!

Looking at the votes on the editorial, it's obvious that it's a very polarizing problem: an hour or so after the contest, the problem had roughly equal numbers of "likes" and "dislikes", and now (as of writing) there are around 320 likes to 200 dislikes. Of course, this is completely predictable: the opinions on this problem were quite polarized for a few reasons:

  1. Troll and WA trap: it's very easy to fall into the trap of thinking that there is no solution for all odd $$$n$$$; thus, over 12,900 (!) WA on pretest 2 solutions were received, as compared to only 4,700ish Accepted solutions. This ratio seems a bit extreme for a problem C; in the previous Div.2's problem C (2028C - Приключения Алисы в нарезании торта), there were 3,500ish Rejected solutions to 2,500ish Accepted ones.
  2. The construction: hard-coding the case $$$n=27$$$ seems weird and mundane, and with such a "big" base case, it may be annoying (and ugly) to figure out. Some testers said they were "disappointed" by the solution.
  3. In general, constructive math problems are going to attract two-sided opinions: people who solve it would love it and find it cute, people who don't solve it would be upset. This is especially true for a problem C, as most people can solve A, B and few people can solve E, F, and thus C and D are the biggest "choke points".

With these negative opinions, including during testing, why was this problem still adopted?

  1. There was no compelling reason to do so; a good number of testers liked it, and in general it received decent reviews across the community.
  2. There was no good alternative problem, especially as the problemset had already been changed once (see the editorial).
  3. I think a round with only conventional problems would be boring, and had always enjoyed constructive problems, and of course would love to share the problem with every one of you!

This problem reminds me of another "troll", controversial C: IMO 2024 C4, adopted as Problem 5 on the contest, otherwise known as the infamous Turbo problem. Without spoiling too much, there are some funny similarities:

  1. Both are constructives; the IMO problem could quite reasonably be translated to a ~2500 rated interactive problem on Codeforces.
  2. Both have quite unexpected solutions that many people do not expect, which contributes to its troll-ness. Once again, no spoiling the solution here!
  3. Both were proposed by a Hongkonger!
  4. Both received very polarized opinions. During the IMO, many participants, especially from stronger teams, resented it; many relatively strong teams scored poorly on it compared to a typical problem 5. I remember reading on AOPS all the negative comments regarding this problem; this is to be expected, given that some people may have trained for an entire year, risen above their peers, only to be hit with such a problem 5 and lose out on a good score and a medal?

But this is a core part of the competition process; you're gonna get trolled.

Me, my team and Problem 5

What makes the comparison between the two problems even funnier is that they are "opposites" in some way:

  1. The IMO problem was tricky in that its solution was simpler than expected, while this problem was more complicated than expected, with the $$$n\ge 27$$$ case coming as a "surprise";
  2. On the IMO, teams from stronger countries tended to hate the problem more, while here on Codeforces, our C seems more popular among the unrated contestants than the rated ones.

During problemsetting, I immediately associated this problem with Turbo, and felt that this would be an immensely fun and funny problem; this is the biggest reason for keeping it. And I hope you all had fun being trolled!

Some challenges?

A comment yesterday triggered my thoughts on variants of the problem. One of which is as follows.

Squares except 1

If $$$1$$$ is not allowed as a valid distance, what would the constructions be? For which $$$n$$$ is the problem no longer possible?

Solution

Minimum number of flavors needed

In the original problem, we did not limit the number of flavors. What if we want to minimize the number of flavors $$$F(n)$$$ chosen? Specifically, how well can we bound the growth of $$$F(n)$$$?

We introduce the shorthand $$$C_x(k)$$$ to mean the construction for the case $$$n=k$$$ using the method in level $$$x$$$, with $$$x=0$$$ being the base level (i.e. the original solution). The trivial estimate is $$$F(n)\le \frac{n}{2}$$$, based on our existing solutions.

Think about the problem for a bit!

Improvements

Once again, hope you enjoyed our contest yesterday!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en11 English ACGN 2024-11-17 03:56:39 23 Tiny change: '2001 C4** to cover ' -> '2001 C4** (refer to **Level 3**) to cover '
en10 English ACGN 2024-11-16 15:38:11 2 Tiny change: 'ome way:\n1. The I' -> 'ome way:\n\n1. The I'
en9 English ACGN 2024-11-16 15:35:44 172 (published)
en8 English ACGN 2024-11-16 15:32:33 370
en7 English ACGN 2024-11-16 14:05:56 4 Tiny change: ' to $C_0(n%27+27)$.\' -> ' to $C_0(n\%27+27)$.\'
en6 English ACGN 2024-11-16 14:02:04 873
en5 English ACGN 2024-11-16 13:49:31 30 Tiny change: '{C^k}{4}+\n\frac{(C-4' -> '{C^k}{4}+\frac{(C-4'
en4 English ACGN 2024-11-16 13:46:31 50 Tiny change: '(\sqrt{n})<\frac{n}{' -> '(\sqrt{n})\\<\frac{n}{'
en3 English ACGN 2024-11-16 13:44:48 5535 Tiny change: 'tion).\n\n' -> 'tion).\n\n\begin{align}\n3+5 &= 5\n&= 6\n\end{align}'
en2 English ACGN 2024-11-16 13:23:34 2564
en1 English ACGN 2024-11-16 09:20:00 3474 Initial revision (saved to drafts)