Rosetta Problems

Quality Inspection and Product Disposal

https://atcoder.jp/contests/awc0080/tasks/awc0080_b