Grid Game
CodeChefOpen on judge ↗
Alice and Bob is playing a game with stones. There is a NxN grid in each cell there may be a stone or may be empty cell. If a cell contain '.' (without single quotes) it means its an empty cell and if it contains 'S' (it means it has a stone). Alice and Bob alternatively and optimally Play a game The game rules are as follows: 1) A player move some stones from the grid. He / She can remove st
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