During Codeforces Round 1099 (Div. 2),, I noticed that Problem E appears to be very similar to an old problem from the Vietnamese Olympiad in Informatics 2021 (VOI 2021).
The statement of Problem E can be summarized as follows:
Given a tree with $$$n$$$ vertices, count the number of triples $$$(a, b, c)$$$ such that $$$a \lt b \lt c$$$ and the number of vertices in the Steiner tree connecting $$$a$$$, $$$b$$$, and $$$c$$$ does not exceed $$$d$$$.
Note. Here, the Steiner tree of a set of vertices in a tree simply means the smallest connected subgraph containing all chosen vertices.
Constraints. $$$3 \leq d \leq n \leq 2000$$$.
However, in VOI 2021, Problem 2 had an almost identical idea. The original Vietnamese statement can be found here. Its statement can be summarized as follows:
Given a tree with $$$n$$$ vertices, count the number of ways to choose $$$k$$$ vertices such that the number of edges in the Steiner tree connecting these $$$k$$$ vertices lies in the interval $$$[L, R]$$$.
Constraints. $$$1 \leq n \leq 1000; k \leq 4$$$.
It is not hard to see that the VOI 2021 problem is a more general version of the Codeforces problem. In particular, when $$$k = 3$$$, the two problems become very close. The main differences are that Codeforces counts vertices instead of edges and asks for the size to be exactly $$$d$$$, while the VOI problem asks for the number of edges to lie in an interval $$$[L, R]$$$.
This similarity is quite concerning, especially because Problem E had a relatively high score in the contest, and the intended idea involving knapsack on tree is not an easy one. Contestants who had already seen or solved the VOI problem could have had a noticeable advantage. Of course, this might still be an unintentional coincidence. However, the overlap in the core idea seems strong enough that I think it is worth pointing out and discussing.
I hope the coordinators can take a closer look at this case. Thanks to ChatGPT for fixing my bad English.









Orz
Just to add a bonus detail: This problem in VOI 2021 actually has Subtask 4 specifically with $$$k = 3$$$ and $$$n \le 1000$$$. This makes that particular subtask exactly identical to the problem in the contest today!
Good job!
come on, this will just happen sometimes... this instance seems quite unserious. do you think any sizable population got it just because they recognized it from vietnam olympiad?
besides, it's not like the solvers are exactly learning tree knapsack for the first time today either?
if you recognized the idea, be happy you get to solve it today..
Yeah maybe, I just wanted to share that this similar problem existed before. Not saying it was intentional or that many people got advantage from it.