problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
luogu::P5708类 参考

洛谷 P5708 【深基2.习2】三角形面积 更多...

#include <luogu.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 

详细描述

洛谷 P5708 【深基2.习2】三角形面积

在文件 luogu.h84 行定义.

成员函数说明

◆ main()

int luogu::P5708::main ( istream &  cin,
ostream &  cout 
)
static

在文件 luogu.cpp268 行定义.

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().


该类的文档由以下文件生成: