Adventures Of Rick I
CodeChefOpen on judge ↗
Rick, the mad scientist, took Chef in a parallel universe where a cube is a more stable shape than a Sphere. Even the Planets are cuboidal in shape. Every planet is made up of layers of rocks. Now, It is time to label the layers and print them. The outermost layer is marked as N and every consecutive layer is marked one less than the previous layer until it finally reaches the core of the planet w
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