hdoj2001

来源:互联网 发布:卡盟系统控制端php源码 编辑:程序博客网 时间:2024/06/05 04:47
 #include<iostream>#include<cmath>using namespace std;int main(){    double x1,y1,x2,y2;    cout.precision(2);    while( cin >> x1 >> y1 >> x2 >> y2)    {           cout << fixed << sqrt(pow((x1-x2),2)+pow((y1-y2),2)) << endl;           }    system("pause");    }


 

原创粉丝点击