洛谷 P5708 【深基2.习2】三角形面积
更多...
#include <luogu.h>
|
static int | main (istream &cin, ostream &cout) |
|
洛谷 P5708 【深基2.习2】三角形面积
在文件 luogu.h 第 84 行定义.
◆ main()
int luogu::P5708::main |
( |
istream & | cin, |
|
|
ostream & | cout ) |
|
static |
在文件 luogu.cpp 第 268 行定义.
268 {
269 double a;
270 double b;
271 double c;
272 cin >> a >> b >> c;
273 const double p = (a + b + c) / 2;
274 cout << setiosflags(ios::fixed) << setprecision(1) << sqrt(p * (p - a) * (p - b) * (p - c));
275 return 0;
276 }
被这些函数引用 luogu::TEST().
该类的文档由以下文件生成: