Welcome to NBUT Summer Trainning For ACM, I want you guys will enjoy this experiment.
But firstly, your foolish captain Alex is
thinking about an easy problem(to others), but he can't solve it, so
he asks you for help. Maybe you will suspect how can he become the captain?
Givn n points and m segments in X-Axes, for
each segment, I want to know how many points in this segment.
A point Pi wil lie in a segment AB, if Ai <=Pi <= Bi.
1 5 3 1 3 4 5 6 0 7 1 2 1 6
Case 1: 5 1 5
无
Alex@NBUT