UPD: Who downvoted the blog, do you really think that having a problem that literally detracts from its solution is better than having a normal B? Please read the blog before making your opinion.
The purpose of this blog is to explain why Problem B from yesterday’s Educational Round is a really terrible problem that should not have been in the contest. I will primarily respond to the arguments presented by BledDest.
Thought process of a problem:
The problem does not directly hint that selecting the $$$k+1$$$ greatest elements is the correct approach. Finding this observation requires skill, as the problem is framed in terms of colors and unusual operations. Because of this, the version of the problem where $$$k \geq 2$$$ (i.e., selecting $$$k+1$$$ greatest elements) is actually a great fit for the second position in the contest.
Taken from the blog:
When preparing the problem, we had an option to discard the case when this greedy solution does not work. However, I didn't like that version of the problem because it just becomes a 'guessforces' problem — people can just assume that you always choose (k+1) maximums, submit the solution without proving it, and get Accepted. I believe we already have too many problems of this style on Codeforces.
I am not saying that "guessforces" problems are good, but a problem without proper sample cases is much worse, especially in problems A and B. Here’s why:
Why problem B exists and why this B fails to satisfy this purpose:
The purpose of Problem B is to create competition among participants who solve Problem A but struggle with higher-positioned problems.
However, when Problem B is harder than Problems C and D (if we ignore algorithmic complexity of course), it disrupts the balance of the contest. If a problem in this position makes higher-rated participants waste excessive time, then something is fundamentally wrong with its quality.
This was exactly the case in this round. Problem B required a more difficult observation than Problems C and D, and everything about its design pushed participants away from the actual solution:
1. Constraints $$$(n \le 5000)$$$ created misleading expectations
This usually hints at fixing an element (left, middle, or right), or at constructing a greedy algorithm in $$$O(n)$$$ or $$$O(n$$$ $$$log$$$ $$$n)$$$. The problem setter claims this was meant to allow solutions that select the $$$k + 1$$$ largest elements in $$$O(n^2)$$$, but this does not justify the constraints: anyone capable of solving the problem would obviously know how to sort.
2. Immediate WA on the second case for the sum of $$$k + 1$$$ greatest elements
If a problem is designed to punish an incorrect approach, it should do so in a way that gives room for thought rather than immediately shutting down a reasonable attempt. A better alternative would have been failing on the 3rd or 4th test case, which would serve as a subtle hint rather than an instant rejection. A well-balanced problem does not need to mislead participants so aggressively.
3. Problem B was harder than C and D
This forced many participants, including myself, to waste unnecessary time on a problem that should have been only slightly harder than Problem A, not significantly harder than Problem C. Codeforces is not meant to be an IOI-style contest where time management is a key factor; rather, it should allow participants to demonstrate their full potential.
This is not the first time this has happened. I've noticed a recurring trend in Educational Rounds where Problem B often requires more out-of-the-box thinking than Problems C, or even D, for example EDU174B, or EDU173B. Also, it's funny how organizers discourage guessing problems, but they created EDU170B, where you literally just need to output $$$2^k$$$ independent of $$$n$$$, "totally not guessforces". If this continues, the optimal strategy may simply become skipping Problem B altogether and moving on to the later problems.
Problems like this should not appear in contests. They create unnecessary confusion, mislead even high-rated participants (many experts likely solved only Problem A due to getting stuck on B), and fail to be educational. Specifically, there is nothing valuable in having a problem that boils down to selecting $$$k + 1$$$ largest elements while requiring an observation that takes too long to realize without normal samples.
Disclaimer: This blog isn't created in a way to hurt or offend anyone, just talking about a problem.