洛谷 P5714 【深基3.例7】肥胖问题
更多...
#include <luogu.h>
|
static int | main (istream &cin, ostream &cout) |
|
洛谷 P5714 【深基3.例7】肥胖问题
在文件 luogu.h 第 158 行定义.
◆ main()
int luogu::P5714::main |
( |
istream & | cin, |
|
|
ostream & | cout ) |
|
static |
在文件 luogu.cpp 第 414 行定义.
414 {
418 const double bmi =
m / (
n *
n);
419 if(bmi < 18.5) {
420 cout << "Underweight";
421 } else if(bmi >= 18.5 && bmi < 24) {
422 cout << "Normal";
423 } else {
424 cout << bmi << endl
425 << "Overweight";
426 }
427 return 0;
428 }
被这些函数引用 luogu::TEST().
该类的文档由以下文件生成: