Game Of Dots
CodeChefOpen on judge ↗
Alice and Bob are playing a game on a grid consisting of $n\times m$ dots. The players take turns adding connecting adjacent dots, i.e. adding one edge at a time to each $1\times1$ square and for each $1\times1$, the player adding the final edge to it gets $1$ point and an additional chance. The player will get an additional chance until the edge added by him/her doesn't complete a $1\times1$ squa
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