#1008拿错了

Kinghero King of the summit 2023-07-07 20:06:35 0
#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;
}
{{ vote && vote.total.up }}

共 2 条回复

Even226 逗比

#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;

}

Even226 逗比

#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; } 我也不知道,你试试这个