Silly Chef
CodeChefOpen on judge ↗
The Chef of Chefland is quite silly, he missed some of his tools this morning. The coordinates of the chef's house are $(0, 0)$ and that of the restaurant’s are $(p, p)$. So he has to go home now to get his tools, but there are quite a bit of challenges in this commute, they are described below - - He can only go down or left - After choosing the initial direction of commute, Chef moves by a cer
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