Pinocchio and Lampwick - Part 1
CodeChefOpen on judge ↗
Pinocchio is a very interesting fictional character. Each time he lies, his nose is extended by 1 cm . Pinocchio and Lampwick are best friends. But Pinocchio's habit of lying has increased manyfold nowadays which has left Lampwick really upset. As a result, he has decided to maintain a diary recording the length of Pinocchio's nose each day. For this, he asks Pinocchio some questions each day and
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