CHEESE GAME
CodeChefOpen on judge ↗
Tom and Jerry are tired of fighting with each other. So they decide to play a game in order to decide the amount of cheese both of them will take. Tom and Jerry take turns playing the game, with Tom starting first. There are n cheese blocks arranged in a row. On each player's turn, they will do the following operations: While the number of cheese block (size of array) is more than one, - Choos
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start