Priya Under A Coconut Tree
CodeChefOpen on judge ↗
It was a sunny day and Priya, who is 158 cm tall, was going from her college to her hostel. On the way she decided to stand under the shade of a coconut tree. Suddenly a coconut started falling from the tree with the speed of 9.8 cm/s (assume there is no acceleration due to gravitational force, since gravity went on vacation :P). You are given the height of coconut tree in centimeters. Find out in
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