Pacman And Numbers
CodeChefOpen on judge ↗
Pacman and his girlfriend Pacwoman love to eat numbers. They were out walking when they found a square park with numbers laying around in the form of a square matrix of size $n$ x $n$. Pacman and pacwoman mutually decide to eat all the numbers at the perimeter of the square alternatively. So first, pacman eats all the numbers at the perimeter, then pacwoman eats all the numbers in the perimeter of
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