Nov 16, 2025
I happened to be proctoring ECNA 2025, and here are a few random afterthoughts after the contest…
You can find the full contest on Kattis: https://naeast25.kattis.com/contests.
Link: https://open.kattis.com/contests/naeast25open/problems/arod
I am slightly surprised that my \(O(n^4)\) solution passes the problem with \(n=300\).
I verified that the inner loop indeed ran around \(2 * 10^9\) times for the test case, so maybe you just have to be brave and code a slightly complexity-wise-worse solution at times…
Link: https://open.kattis.com/contests/naeast25open/problems/butiwanttowin
Let me just present you my accepted solution and see if you can figure out what is wrong:
I will quote the clarification question to showcase the issue:
question for judges: we want to know the answer to the following test case from judge solutions6 3 7 8 9 80 100the answer is 2: round 1: the candidate with 3 votes can have 2 votes diverted to the candidate with 7, and 1 vote diverted to the candidate with 8 round 2: there are three candidates with 9 votes each, so all of them are knocked out and divert their votes to us, giving us 107 votes, a strict majority we think that the judges might print an incorrect solution to this test case
By the time I read the problem, it was pretty clear that the problem was not correct, based on the fact that the two top MIT teams died horrendously on it and other teams passed in one go:

I was able to intuit what went wrong pretty easily, given the relatively straightforward (and wrong) greedy, and was contemplating an interesting philosophical question: if I know that problem is wrong and I know why it is wrong, should I submit a wrong solution that would get accepted?
Eventually I believe the problem was rejudged after the contest, and almost every solution was accepted. The current scoreboard should reflect the fact.
I think it is generally difficult to make a contest that is absolutely correct. Still, given the relative frequency of issues in problem setting (e.g. https://zhtluo.com/cp/rant-on-incorrect-ecna-2023-c-computational-geometry.html), I wonder if we can employ a more rigorous problem testing procedure somehow.