Zorgian Cellular Jail
CodeChefOpen on judge ↗
On the planet of Zorg, scientists have conquered the limitations of space-time and designed a cellular jail in which the cells are organized as an n-dimensional hypercube with upto 10 8 prison cells along each dimension. A clever system of connected corridors makes it possible to walk from any cell in the jail to any other cell. Each corridor runs parallel to one of the axes, so all paths from one
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