Rosetta Problems

蟻と角砂糖 (Ants and Sugar)

https://atcoder.jp/contests/joisc2022/tasks/joisc2022_i