3 條題解

  • -3
    @ 2025-10-19 16:02:20
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	double n,m;
    	cin>>n>>m;
    	double a=n/(m*m);
    	if(a<18.5){
    		cout<<"Underweight";
    	}
    	if(a>=18.5&&a<24){
    		cout<<"Normal";
    	}
    	if(a>=24){
    		cout<<a<<endl;
    		cout<<"Overweight";
    	}
    	return 0;
    }
    
    
    

    資訊

    ID
    1490
    時間
    1000ms
    記憶體
    256MiB
    難度
    1
    標籤
    (無)
    遞交數
    145
    已透過
    54
    上傳者