Vamsi and Gravity
CodeChefOpen on judge ↗
One day Vamsi was on his roof. He dropped a ball with no initial velocity. He is observing the direction in which ball is moving. You have to tell the direction of ball either "Up" or "Down" at a time T after start of the event. If ball is touching ground write "Bottom" or if ball is at the maximum height(Velocity=0) write "Top". Consider Gravity=10m/s2 and all collisions to be perfectly elastic
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