← Back to Blog

UCPC 2026 and Hard Sorting Problem

…yeah, in my previous post, I ended with this sentence: "And who knows, maybe there will be another interesting problem somewhere next year." Welp, it was actually this year, haha!

Yes, I participated again this year as a writer for UCPC 2026. If you don't know what UCPC is, check my previous post; there's a convenient AI summary.

However, this year was different. I submitted 4 problems in total, unlike last year, when I just submitted 1 without expecting anything. Only one problem got in, which is even more depressing, but I'm still glad I got to be part of this prestigious competition again.

This problem was created for ONE particular person; again, same motivation, but from a different person and for a different reason. He personally made a problem and asked me to solve it, which was titled "Easy Sorting Problem". It was going to be easy, right? And indeed, it was, but I made a mistake in my first submission and got the verdict WA, short for Wrong Answer. Yes, I got it wrong. HOW EMBARRASSING! I got so mad that I decided to quit completely, and I still haven't thought about it or submitted it since then.

So I decided to get my revenge by naming my problem "Hard Sorting Problem" and submitting it to UCPC, which I definitely knew he'd participate in. Luckily, this one made it through.

By the way, at this point — after I got the email that my problem was selected for UCPC 2026 — I wrote the blog about UCPC 2025 and XOR Graph.

And I don't know what to say this year, except that the test data were weak, and basically "some" teams received AC despite having incorrect solutions. By "some", I mean fewer than 10. One good thing is that this wasn't as severe as weak data in the final round (my problem was in the preliminary round), but it has indeed been crucial on some occasions. I'm terribly sorry, since this affected the leaderboard results, and in future contests I will make sure these incidents absolutely do not happen. I guess I've learned my lesson.

Anyway, that's the story of how my revenge turned into a UCPC problem, and how I leraned a rather painful lesson about test data. Hopefully, next time I'll have a funnier story to tell, with fewer incorrect solutions getting AC. :')