hdoj 2001
来源:互联网 发布:祁县哪个宽带网络好 编辑:程序博客网 时间:2024/06/12 00:52
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main(void)
{
double x1, x2, y1, y2, d;
while (cin >> x1 >> y1 >> x2 >> y2)
{
d = sqrt(double((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));
cout << setiosflags(ios::fixed) << setprecision(2) << d << endl;
}
return 0;
}
#include<cmath>
#include<iomanip>
using namespace std;
int main(void)
{
double x1, x2, y1, y2, d;
while (cin >> x1 >> y1 >> x2 >> y2)
{
d = sqrt(double((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));
cout << setiosflags(ios::fixed) << setprecision(2) << d << endl;
}
return 0;
}
阅读全文
0 0
- HDOJ--2001
- hdoj 2001
- hdoj--2001 c/c++
- hdoj no.2001
- HDOJ
- hdoj
- hdoj
- HDOJ
- hdoj 1361 Parencodings 2001 Asia Regional Teheran
- HDOJ 2001 计算两点间的距离
- HDOJ 2001 计算两点间的距离
- HDOJ-2001-计算两点间的距离
- HDOJ 2001 计算两点间的距离
- HDOJ 2001计算两点间的距离
- HDOJ 2001-计算两点间的距离
- HDOJ 2001 计算两点间的距离
- Hdoj 2001 计算两点间的距离
- HDOJ 2001 计算两点间的距离
- 如何生成KeyStore
- 单KEY业务,数据库水平切分架构实践 | 架构师之路
- okHttp工具类,实现get和post
- yii2常用方法
- Js控制iphone端的input/textarea元素失去焦点时隐藏键盘
- hdoj 2001
- 面试题目
- SqlServer循环查询
- 关于requireJs基础的总结
- mysql语句执行顺序
- 排序算法
- Java并发编程:volatile关键字解析
- The content of the adapter has changed but ListView did not receive a notification终极解决方法
- Java设计模式详解之一工厂方法模式