#include <bits/stdc++.h>
using namespace std;
int main() {
double a,b,c;
cin>>a>>b;
c = a /(b * b);
if(c < 18.5)
{
cout<<"low";
}
else if(c >= 18.5 &&c < 24)
{
cout<<"normal";
}
else
{
cout<<"high";
}
return 0;
}
共 2 条回复
#include
using namespace std;
int main(){
}
#include using namespace std; int main(){ double a,b; cin>>a>>b; a=b/(a*a); if(a>24){ cout<<"high"; } else if(18.5<=a){ cout<<"normal"; } else { cout<<"low"; } return 0; } 我也不知道,你试试这个