You are viewing a single comment's thread. Return to all comments →
Whoever called this problem "simple game" is a moron because it's not even remotely simple. Seriously, if it's simple for you, you might as well call yourself John von Neumann.
Lol. Anyway, I was able to solve 24 test cases while the others timed out. I just really don't want to look for optimizations anymore. This problem is heavy on combinatorics. If you have any suggestions on how to improve, please enlighten me.