Rosetta Problems

Family Tree and Inheritance

https://atcoder.jp/contests/awc0011/tasks/awc0011_d