Hello, Codeforces :3
I am thrilled to invite you to Codeforces Round 1138 (Div. 3), which will start at Nov/27/2026 17:35 (Moscow time).
Then round will last 2 hours and 15 minutes and you will be given 7-8 problems to solve. The round will be rated for participants with a rating lower than 1600.
Remember that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must:
- take part in at least five rated rounds (and solve at least one problem in each of them)
- do not have a point of 1900 or higher in the rating.
Regardless of whether you are a trusted participant of the third division or not, if your rating is less than 1600, then the round will be rated for you.
I put a lot of effort into preparing this round, and I hope you’ll enjoy reading the problem statements as much as I enjoyed writing them. Each problem picks up where the previous one left off. I hope you’ll make it to the last problem and read the story all the way to the end.
I would like to thank Vladosiya for the helpful feedback and assistance with preparing the problems. Special thanks to:
MikeMirzayanov for Polygon and Codeforces platforms.
Friendiks, KotlechkovEgor, semwin2008 for helping me improve the problems.
MikeMirzayanov, zhichenlin, Timosh, wery0, JedbyKey999, itz_pabloo, vanta5n, grigalex40, xinerx for colorful and wonderful testing.
The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of open hacks. After open hacks all accepted solutions will be rejudged on successful hacks.
Good luck and have fun!








