60分
查看原帖
60分
1419307
k115414_楼主2024/10/10 21:56
#include<bits/stdc++.h>
using namespace std;
int main(){
	double n,h,a;
	cin>>n>>h;
	a=n/pow(h,h);
	if(a<18.5){
		cout<<"Underweight";
	} 
	else if(a>=18.5&&a<24){
		cout<<"Normal";
	}
	else{
		cout<<a<<endl;
		cout<<"Overweight";
	}
    return 0;
}

2024/10/10 21:56
加载中...