import java.util.*;
import java.math.*;
import java.text.DecimalFormat;
public class Main {
public static void main(String args[])
{
Scanner cin=new Scanner(System.in);
double x1,y1,x2,y2;
DecimalFormat df = new DecimalFormat("0.00");
while(cin.hasNext())
{
x1=cin.nextDouble();
y1=cin.nextDouble();
x2=cin.nextDouble();
y2=cin.nextDouble();
double temp;
temp=Math.sqrt(((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)));
System.out.println(df.format(temp));
}
}
}

 

相关文章:

  • 2022-12-23
  • 2022-02-02
  • 2021-08-29
  • 2022-12-23
  • 2022-03-09
  • 2021-09-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
相关资源
相似解决方案