Well, this is easy!
CodeChefOpen on judge ↗
Rick, a famous mad scientist, and his dumb grandson, Morty are on an adventure in space. They wish to visit a planet named Ghazorpazorp which is a million light-years away from the earth. Since the journey would be long and boring, Rick gave Morty an interesting problem. He gave him a grid of size $N*N$ that has the following specifications: - Each cell in the grid contains either a policem
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