Rosetta Problems

飴 2 (Candies 2)

https://atcoder.jp/contests/joi2022yo2/tasks/joi2022_yo2_d