两点间的距离

Description

给出两个笛卡尔坐标系(Cartesian coordinate system)的坐标 ( X1, Y1 ) ,( X2, Y2 ),计算并输出两点间的距离。

Input

测试数据有多组,一组占一行,每行是4个实数(real number)组成,分别表示 x1 , y1 , x2 , y2 ,数据之间一个空格隔开。

Output

为每组测试数据,输出输出一行结果:两点间的距离,保留两位小数。

Sample Input

0 1 1 0
0 0 1 0

Sample Output

1.41
1.00

猜你喜欢

转载自blog.csdn.net/weixin_39915192/article/details/78996192
今日推荐