Pasture 1
문제
Farmer John has posts on his pasture. The pasture can be modeled as a coordinate plane where each post has integer coordinates.
John wants to connect the posts with wire segments that do not cross (in other words, the wire segments may only touch at their common endpoints) and form a number of triangular enclosures for his sheep. The sheep are fairly selfish, so each of them needs to be in a separate enclosure.
As the business is not going particularly well at the moment, John would like to use as litte wire as possible. Help him arrange the wire segments so that the total length of wire used is as small as possible, but he can accommodate the maximal number of sheep. John has a limited amount of wire and cannot use more than that.
입력
The first line contains , the number of posts on the pasture (), and the integer , the total length of wire that John has (). Each of the following lines contains two integers and , the coordinates of one fencepost (). The posts are numbered in the order of their appearance in the input.
출력
The first line should contain , the number of wire segments, and , the total length of wire spent. Each of the following lines should contain two integers and , indicating that one of the wire segments should connect the posts and . The total length of wire, , should be given with exactly decimal digits.
예제
예제 1
4 19 0 0 0 3 3 0 4 3
5 17.404918 1 2 2 4 4 3 3 1 2 3