Note the unusual time of the round.
Hello, Codeforces!
Tsinghua University’s Student Association of Algorithmic Competitions (THUSAAC) is pleased to invite you to participate in Codeforces Round 1092 (Unrated, Div. 1, Based on THUPC 2026 — Finals) and Codeforces Round 1092 (Unrated, Div. 2, Based on THUPC 2026 — Finals) on Apr/12/2026 08:35 (Moscow time). This round will be UNRATED for everyone. You will be given 3 hours to solve 7 problems for Division 1 and 6 problems for Division 2.
Please note that this contest contains at least one run-twice (communication) interactive problem. Please read the guides for run-twice problems before the contest if you are unfamiliar with them.
What’s more, it’s the first time that we will provide a local testing tool to help the contestants test their solutions on interactive problems. To get familiar with the testing tool, you may download the sample testing tool for an earlier interactive problem and an earlier run-twice problem. You can download them from the materials of the above problems.
Usage of the testing toolsTo use the tools, you need to have Python installed. Take Guess the Number as an example, run the command below in the terminal:
Arguments explanation:
-q, --quiet is an optional argument. The tool will print the interaction logs between itself and your program, and enabling this will make the tool stop printing them.
data_file is the input file you provide to the tool. It should follow the correct format. You may read the top line comments for detailed format.
program is the name of your compiled program.
arguments are the arguments your program needs.
The top line comments in the source codes contain detailed information about the tools themselves. Refer to them if you are unclear about anything related to the tools.
Our team of amazing problem setters include: Warriors_Cat, E.Space, Ecrade_, SpiritualKhorosho, dapingguo8, xiaoziyao, Kratrissa, crazy_sea, zhouhuanyi, Doqe. Some of the problems prepared were not used in the final contest but we would still like to thank them nonetheless.
We would also like to express our gratitude to the following individuals:
KAN for helping to host the round;
Error_Yuan for coordination and helping with the problem preparation;
Alexdat2000 for translating the problems into Russian;
The team of problem setters for crosschecking the problems and also donghanwen, Iam1789, Zesty_Fox, sszcdjr, YuukiS, A_G, nifeshe, Caylex, a_little_cute, simplelife, Serval, wmrqwq for testing the contest and providing us very useful feedback;
Tsinghua University’s administration, especially our advisor Wentao Han for helping us in all means possible to ensure the smooth organisation of the whole THUPC event;
MikeMirzayanov for the amazing Codeforces and Polygon platform!

THUPC is an annual event hosted by Tsinghua University’s Student Association of Algorithmic Competitions (THUSAAC). It is the largest student-run competitive programming contest in China with the top 100 Competitive Programming teams from all over China coming onsite to vie for the crown of BEST CP Team in China after qualifying from a pool of 1000+ teams.
Moreover, this year is the 10-th anniversary of THUPC. Years of a decade have distilled countless brilliant and sparkling moments, and our gathering today is no less memorable. Our sincere gratitude goes to all staff and volunteers of THUSAAC. None of these glory would have been possible to be realized without your efforts!
By experiencing a series of collisions between intellect and joy, we hope you will enjoy and have fun in the contest. Good luck!
The scoring distribution:
Div. 2: $$$500 -1000-1750-2250-2750-4000$$$
Div. 1: $$$750-1250-1750-2750-3000-4000-5000$$$
UPD: Due to technical reasons, this round will be UNRATED. We are really sorry for any inconvenience caused by this :(
UPD2: Reasons of being unrated: The official contest started 3.5 hours earlier than the codeforces round. The problem statements unexpectedly leaked from the public scoreboard shortly after the official contest begins, and it spread a bit widely before the codeforces round begins, so the round can't be made rated now... We apologize for our mistakes :(
UPD3: Editorial