提交时间:2024-05-05 10:39:05

运行 ID: 39721

#include<bits/stdc++.h> using namespace std; float tz,sg,BMI; int main(){ 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; }