ARC 024 C - だれじゃ
https://atcoder.jp/contests/arc024/tasks/arc024_3