Rosetta Problems

Chaining Buckets

https://atcoder.jp/contests/awc0099/tasks/awc0099_a