`
googlelc
  • 浏览: 59962 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

hdoj2001

 
阅读更多
 #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");
    }


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics