You could Construct a Right angle triangle with following dimensions
$$h=50$$ (Since It's Length of Cylinder) $$b=\pi\times20$$ (Since $20$ is Radius and If I'm not wrong Circumference of Semicircle would be $\pi r$)
so Length of rope will be $$L=\sqrt{h^2+b^2}$$ $$L=\sqrt{2500+400\pi^2}$$ $$L\approx80.30$$
Approximated Here&oq=sqrt\(2500%2B400*pi*pi\)&aqs=chrome..69i57.23046j0j7&sourceid=chrome&es_sm=93&ie=UTF-8)