Black and White
CodeChefOpen on judge ↗
Casey has bought a new flat. The floor is of size $N$ X $M$ and has two types of tiles, one is of black color and other is of white color. Each tile is of size $1$ X $1$. She is looking for all such tiles which are of black color and there are no other black tiles in the same row and column. Help her find the count of all such tiles. ###Input: - First line will contain the two integer $N$ and
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