现在的位置: 首页 > 综合 > 正文

hdoj2001

2013年10月04日 ⁄ 综合 ⁄ 共 198字 ⁄ 字号 评论关闭
 #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");
    }

 

抱歉!评论已关闭.