洛谷 P5735 【深基7.例1】距离函数
更多...
#include <luogu.h>
|
static int | main (istream &cin, ostream &cout) |
|
洛谷 P5735 【深基7.例1】距离函数
在文件 luogu.h 第 591 行定义.
◆ main()
int luogu::P5735::main |
( |
istream & |
cin, |
|
|
ostream & |
cout |
|
) |
| |
|
static |
在文件 luogu.cpp 第 2258 行定义.
2265 cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
2266 const double d12 = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
2267 const double d23 = sqrt(pow(x3 - x2, 2) + pow(y3 - y2, 2));
2268 const double d13 = sqrt(pow(x3 - x1, 2) + pow(y3 - y1, 2));
2269 cout << fixed << setprecision(2) << d12 + d23 + d13;
被这些函数引用 luogu::TEST().
该类的文档由以下文件生成: