Rosetta Problems

ICPC 2023 miền Nam - A: A Game with Cows

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