Scam Land
CodeChefOpen on judge ↗
Consider the country __Scamland__ as the grid of __N__ __x__ __N__ cells. The speciality of this country is that each of its cells is either colored __Black (B)__ or __White (W)__. Now, the King of Scamland wants to know the number of scam squares in his Scamland. A __Square__ in a grid is called a __Scamsquare__ if no two adjacent cells within that square have the same color. Two cells are co
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