Rosetta Problems

Red and Blue Chips

https://atcoder.jp/contests/agc064/tasks/agc064_d