We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Game
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.