package hello;import java.util.ArrayList;import java.util.Collections;import java.util.List;import java.util.Scanner;publicclassfuck{
publicstaticvoidmain(String[] args){
Scanner scanner =newScanner(System.in);int N =-1;while(N !=0){
N = scanner.nextInt();
List<Point> points =newArrayList<>();//创建列表(列表中放的是点的对象)for(int i =0; i < N; i++){
//把输入的点弄进列表
Point point =newPoint();
point.setX(scanner.nextDouble());
point.setY(scanner.nextDouble());
points.add(point);}if(N!=0){
double min =MinDistance(points);
System.out.printf("%.2f", min