Rosetta Problems

ICPC 2022 miền Trung - E: Birthday Cake

https://oj.vnoi.info/problem/icpc22_mt_e