Jumping Through Segments

Problem Name:
Jumping Through Segments
Site:CodeForces
Links:
Tags:
Problem setters: