Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5860 Tracy 肥胖问题 C++ 解答错误 0 0 MS 784 KB 356 2020-08-20 13:42:44

Tests(0/30):


#include <iostream> #include <cstdio> #include <iomanip> #include <cmath> using namespace std; int main () { double m, h, x; cin >> m >> h; x = (m/h)*h; if (x<18.5) { cout <<"underweight"; } else if (x<=18.5 && x<24) { cout << "Normal"; } else { cout << x << endl; cout << "Overweight"; } return 0; }


测评信息: