Rosetta Problems

Simulation of Chemicals

https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_bv