提交时间:2024-05-05 10:55:30

运行 ID: 39724

#include"bits/stdc++.h" using namespace std; double a,b,ans=0; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin>>a>>b; ans=a/((b/100)*(b/100)); if(ans<18.5)cout<<"thin"; else if(ans>=18.5&&ans<=24)cout<<"great"; else cout<<"fat"; }