Velocities of balls

Problem Name:
Velocities of balls
Site:HackerEarth
Links:
Tags:
Problem setters: