Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
8145 鱼锁嵘 肥胖问题 C++ 解答错误 33 0 MS 252 KB 267 2020-10-31 16:14:50

Tests(1/3):


#include<bits/stdc++.h> using namespace std; int main(){ int m; double h,ans; cin>>m>>h; ans=m/1.0/h/h; if(ans<18.5)cout<<"Underweight"; if(ans>=18.5&&ans<24)cout<<"Normal"; if(ans>24){ printf("%.6lf\n",ans); cout<<"Overweight"; } return 0; }


测评信息: