2 solutions
-
-1
#include<bits/stdc++.h> using namespace std; int main() { double a,b; cin>>a>>b; if(a/(bb)<=24 and a/(bb)>=18.5) { cout<<"Normal"; } else if(a/(bb)>24) { double d=a/(bb); cout<<fixed<<setprecision(4)<<d<<endl; cout<<"Overweight"; } else if (a/(b*b)<18.5) { cout<<"Underweight"; } return 0; }
- 1
Information
- ID
- 1490
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 68
- Accepted
- 23
- Uploaded By