Rosetta Problems

O(rand)

https://atcoder.jp/contests/tokiomarine2020/tasks/tokiomarine2020_e