1 条题解
-
0
#include <iostream> //使用std::cout要从这个头文件中提取 #include <stdio.h> //使用std::cout要从这个头文件中提取 int main() { double m, h, x; scanf("%lf %lf", &m, &h); // double的占位符是%lf x = m / (h * h); if (x < 18.5) printf("Underweight"); else if (x < 24) printf("Normal"); else { std::cout<<x<<std::endl; printf("Overweight"); } return 0; }
- 1
信息
- ID
- 42
- 时间
- 1000ms
- 内存
- 512MiB
- 难度
- 7
- 标签
- 递交数
- 214
- 已通过
- 49
- 上传者