Rosetta Problems

Standing On The Shoulders

https://atcoder.jp/contests/abc352/tasks/abc352_c