Rosetta Problems

ICPC 2023 miền Nam - C: Cube

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