Rosetta Problems

Choosing an Observation Deck

https://atcoder.jp/contests/awc0083/tasks/awc0083_b