数据咋了
查看原帖
数据咋了
373662
KobeBeanBryant楼主2020/11/24 18:44

明明第四个点输入输出都是对的,为什么WA

#include<bits/stdc++.h>
using namespace std;
double a,b,j;
int main(){
    cin>>a>>b;
    j=a/(b*b);
    if(j<18.5) cout<<"Underweight";
    else if(j>=18.5&&j<24) cout<<"Normel";
    else cout<<setprecision(6)<<j<<endl<<"Overweight";
}
2020/11/24 18:44
加载中...