Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
39640 | ZYH123 | 健康身材(health)(2024年岳阳市赛小学组) | C++ | 通过 | 0 MS | 244 KB | 200 | 2024-05-05 08:42:42 |
#include <bits/stdc++.h> using namespace std; float a,b; int main(){ cin>>a>>b; b=b/100; if(a/(b*b)<18.5)cout<<"thin"; else if(a/(b*b)>18.5&&a/(b*b)<24)cout<<"great"; else cout<<"fat"; }