acm 2001

格式化输出

////////////////////////////////////////////////////////////////////////////////

#include<iostream>
#include<math.h>
#include<iomanip>
using namespace std;

int main(int argc,char * argv)
{
double a,b,c,d;
while(cin>>a>>b>>c>>d)
{
cout<<fixed<<setprecision(2)<<sqrt(pow(c-a,2)+pow(d-b,2))<<endl;
}
return 0;
}

/////////////////////////////////////////////////////////////////////////////

posted @ 2018-02-26 15:44  youqia  阅读(115)  评论(0编辑  收藏  举报