#include<iostream> #include<math.h> #include<iomanip> using namespace std; void main(){ double x1,x2,y1,y2; while(cin>>x1){ cin>>y1>>x2>>y2; double t=0.0; t=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)); cout<<setprecision(2)<<fixed<<t<<endl; } }
杭电ACM 第2001题
最新推荐文章于 2021-02-02 20:23:20 发布