Save the kids
CodeChefOpen on judge ↗
Leonardo Da Vinci has entered a fort which has N catacombs numbered from 1 to N . A cat- acomb is an underground cemetery consisting of a subterranean gallery. His aim is to destroy each of the N catacombs, as quickly as possible. The catacombs have a special structure. The catacombs are built in layers, with exactly one catacomb (numbered 1) in the topmost layer (layer number 1). If a catacom
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