The displacement of the rock will be the same as the total horizontal distance traveled. Here the rock's horizontal position is given by

so to find the horizontal distance it traversed, we need to know the time it took for the rock to return to the ground. We use the rock's vertical position over time to figure that out:

where
is the acceleration due to gravity. Then we find that
, at which point we find
.