Loading repovive.com/contests/3/problems/B
You have boxes. In box there are red balls and blue balls.
In one operation, you choose one ball from some box and move it to a different box.
Your goal is to make every box monochromatic, meaning that it contains balls of at most one color (it may also become empty).
For each test case, find the minimum number of operations needed.