Rosetta Problems

時をかけるビ太郎 (Bitaro, who Leaps through Time)

https://atcoder.jp/contests/joisc2019/tasks/joisc2019_i