Special Chess-Board
CodeChefOpen on judge ↗
Goku and vegeta are fighting rigorously from a long time, but they can't arrive to a conclusion that who is better and stronger than the other. So they decided to do it by other means. Both of them started playing chess on an $N × M$ chess-board and vegeta has already placed $R$ Black rooks on the chess-board and then he asks goku to place one White rook on the chess-board such that it is safe .
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