Rosetta Problems

Subsequence Path

https://atcoder.jp/contests/abc271/tasks/abc271_e