The idols of MahaBaleshwar
CodeChefOpen on judge ↗
In the temple town of Mahabaleshwar there is a $N$ $X$ $M$ grid , where each cell that has a $'.'$ represents a tile and $'#'$ represents an idol. The temple head approached the CTE team at BITS to develop a Surveillance Drone to ensure the security of their idols. The CTE team told them that they can create a drone with a range of $P$ at the cost of $C * P$. A drone with $x$ range can provid
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