2000
来源:互联网 发布:软件系统解决方案模板 编辑:程序博客网 时间:2024/04/29 06:09
#include <iostream>#include <cmath>#include <vector>using namespace std;struct Point{double x,y;};double L(const Point&a, const Point&b){return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));}int main(){int count = -1,i;cin>>count;Point a,b,c;vector<double> dvec;for(i=0;i<count;i++){cin>>a.x>>a.y>>b.x>>b.y>>c.x>>c.y;dvec.push_back(L(a,b)+L(b,c)+L(a,c));}cout.setf(ios::fixed);cout.precision(3);for(i=0;i<count;i++)cout<<dvec[i]<<endl;return 0;}
- 2000
- 2000
- 2000
- 2000
- 2000
- 2000
- 2000
- windows 2000
- ICIP 2000
- psp-2000
- 2000连接
- hd 2000
- 纪念2000
- JPEG 2000
- 2000年
- 2000以后
- HDU 2000
- hdu 2000
- Debug正常Release下程序崩溃问题
- 1863
- 正则表达式详解
- core dump和段错误
- MSChart 饼型 百分比解决方案
- 2000
- Android软件安全开发实践(上)
- Yii - 连动下拉菜单,可多级哦
- [设计模式]抽象工厂模式(AbstructFactory)
- Android软件安全开发实践(下)
- 使用JNI进行混合编程:在C/C++中调用Java代码
- 1817
- ARM架构版本与处理器版本
- 2718