Rosetta Problems

ICPC 2024 miền Trung - K: Ants

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