Rosetta Problems
← atcoder に戻る
Family Tree and Inheritance
https://atcoder.jp/contests/awc0011/tasks/awc0011_d