Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
39716 | TheFirstGreen | 健康身材(health)(2024年岳阳市赛小学组) | C++ | 通过 | 0 MS | 256 KB | 280 | 2024-05-05 10:33:55 |
#include<bits/stdc++.h> using namespace std; float tz,sg,BMI; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin>>tz>>sg; sg/=100; sg*=sg; BMI=tz/sg; if(BMI<18.5)cout<<"thin"; else if(BMI>24)cout<<"fat"; else cout<<"great"; return 0; }