Rosetta Problems

Choosing Blocks in a Shopping Street

https://atcoder.jp/contests/awc0100/tasks/awc0100_k