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

AcWing 664. 三角形 更多...

#include <acwing.h>

静态 Public 成员函数

static int main (istream &, ostream &)
 

详细描述

AcWing 664. 三角形

在文件 acwing.h415 行定义.

成员函数说明

◆ main()

int acwing::acwing664::main ( istream &  cin,
ostream &  cout 
)
static

在文件 acwing.cpp1072 行定义.

1072 {
1073 double a;
1074 double b;
1075 double c;
1076 cin >> a >> b >> c;
1077 cout << setiosflags(ios::fixed) << setprecision(1);
1078 if(a + b <= c || a + c <= b || b + c <= a) {
1079 cout << "Area = " << (a + b) * c / 2;
1080 } else {
1081 cout << "Perimetro = " << a + b + c;
1082 }
1083 return 0;
1084 }

被这些函数引用 acwing::TEST().


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