Rosetta Problems

親密なシェフ (Intimate Chef)

https://atcoder.jp/contests/joi2025yo2/tasks/joi2025_yo2_d