I solved it by two methods:
-----------------------------------------------------
First, by conservation of linear momentum, using the vector velocities of each particle:
In the imminence of the impact, the velocity of all the three particles are the same, \vec v_0 = - \sqrt{2gh} \hat j...