← All problemsSign in

Chef and Puppy

Chef is working as a puppy guide . Puppy walks along the $X$ axis. Puppy can choose either of two directions and any speed not exceeding $V$. Puppy can also stand without moving anywhere. The chef informs them that at time $t1$ in the point with co-ordintate $x1$ a bone will occur , at time $t2$ in the point with co-ordintae $x2$ - another one , and so on up to ($xn$, $tn$) . It takes almost

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start