求助大佬 后两个测试点过不了(哭唧唧)
查看原帖
求助大佬 后两个测试点过不了(哭唧唧)
632798
qingyuanzjy楼主2022/3/13 18:48

#求助 请大佬们帮忙看看哪里有问题

#include<bits/stdc++.h>
using namespace std;
double m,h,weight;
int main(){
	cin>>m>>h;
	weight=m*1.0/(h*h);
	if(weight<18.5)
	cout<<"Underweight";
	if(weight>=18.5&&weight<24)
	cout<<"Nolmal";
	if(weight>=24){
		cout<<weight<<endl;
		cout<<"Overweight"<<endl;
	}
	return 0;
}
2022/3/13 18:48
加载中...