Rosetta Problems
← atcoder に戻る
Box and Ball
https://atcoder.jp/contests/agc002/tasks/agc002_b