The closest pair of points problem is a well-known problem of computational geometry. In this problem, you are given n points in the Euclidean plane and you need to find a pair of points with the smallest distance between them.
Now, Claris, the brilliant one who has participated in programming contests for several years, is trying to solve a harder problem named the closest pair of segments problem, which also has a quite simple description as above.
However, the problem seems even too hard for Claris and she is asking you for help.
Now n segments are lying on the Euclidean plane, you are asked to pick two different segments and then pick a point on the two segments respectively to minimize the distance between these two points.
For simplicity, any two given segments share no common point, and you don't need to show her the two chosen points, but the distance between them instead.