Rosetta Problems

宇宙怪盗 (Space Thief)

https://atcoder.jp/contests/joisp2025/tasks/joisp2025_f