In need of Velocity
CodeChefOpen on judge ↗
Chef's best friend's teacher has given him a problem. He is unable to solve the problem and wants the chef to help him. The problem goes like this: A ball of mass m kg falls through a frictionless pipe under the action of gravity. The height of starting point is h. For upper h/2 distance, the pipe is straight. For the next h/2 distance, the pipe has the shape of a semi-circle. If the ball is relea
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