Hello Codeforces!

I am pleased to invite you to participate in 2025 ICPC Asia Taichung Regional Contest (Unrated, Online Mirror, ICPC Rules, Preferably Teams), which will be held on 16.11.2025 04:50 (Московское время). This is an online mirror contest for the 2025 ICPC Asia Taichung Regional Contest. The duration of the contest will be 5 hours and the contest is best for teams of three people. The mirror will use the ICPC format.
We have an excellent judge team (Regional Contest Director Ling-Ju Hung, Chief Judge Peter Rossmanith, baluteshih, henotrix, ToxicPie9, marmot0814, kasuistry, cthbst, leo900807, olmrgcsi, hank55663, alan8585, waynetuinfor, CindyLinz, samsam2310, ltf0501, LFsWang, Jeffrey, tmt514), outstanding task authors not from the judges (for both the preliminary contest and the regional: Jinn-Shyong Yang, Shik, smallbird, Shenghui Chen, Kuroni), and strong tester teams (nikilrselvam, Vince729, applepi216, qq11123334, LiuYun40066, SorahISA, -1e11, rgnerdplayer, 2qbingxuan) this year! The judges greatly appreciate the testers for their valuable feedback!
Last but not least, we would like to give a big shout-out and express our gratitude to MikeMirzayanov for creating the incredible Codeforces platform, and to Mike and Vladosiya for all their support in making this online mirror contest possible!
On behalf of the 2025 ICPC Asia Taichung Regional Contest Judge Team (with Regional Contest Director Ling-Ju Hung, Chief Judge Peter Rossmanith), we hope you enjoy this contest and have fun!
Of course, this contest will be unrated.
For more information about the regional contest, please see the contest website. There will also be live streams!
UPDATE: The contest will be postponed for 15 minutes as the contestants are still entering the contest hall. We are very sorry for the delay.
UPDATE2: The full list of the judge teams, task authors, and the tester teams are up! We will upload solution hints in the next few days, please stay tuned :)
UPDATE3: We have a YouTube playlist covering solutions to most problems. Solution hint documents will be updated soon.