HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > "Informatics Stars" Online Contests - 2011-2014 > problem:


2012-11-10. 50568 - Body Mass Index Calculator

"Informatics Stars" Online Contests - 2011-2014

Start: Oct.20.2012 at 10:00:00 AM
Finish: Oct.20.2012 at 03:00:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (2)

Contest problems

• 2012-02-7. 50704 - Connected?
• 2012-02-8. 50596 - Your Ride Is He...
• 2012-02-8. 50596 - Your Ride Is He...
• 2012-03-01. 50563 - Long Modulus
• 2012-03-02. 50567 - Input Data No...
• 2012-03-04. 50597 - Drawing Diam...
• 2012-10-02. 50555 - Frequency of L...
• 2012-10-04. 50598 - Minimum Sum
• 2012-11-10. 50568 - Body Mass ...
• 2012-11-30. 50656 - Divisibility by 11
• 2012-11-40. 50558 - Biggest Barn
• 2012-12-10. 50546 - Average Fuel P...
• 2012-12-20. 50574 - Triangular Nu...
• 2012-12-30. 50684 - Sum of prime ...
• 2013-01-10. 50584 - Total invoice ...
• 2013-01-30. 50599 - Sum of Squar...
• 2013-03-20. 50578 - Mersenne prime

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan.

Body Mass Index Calculator

Shqip

Body Mass Index is used to measure the body fat based on the height and weight: www.nhlbisupport.com/bmi/ By recent estimates, two-thirds of the people in the United States are overweight and about half of those are obese. This causes significant increases in illnesses such as diabetes and heart disease. BMI can be calculated using the following formula:

BMI = weightInKilograms / (heightInMeters * heightInMeters)

BMI Values
      Underweight: less than 18.5
      Normal: between 18.5 and 24.99999
      Overweight: between 25 and 29.99999
      Obese: 30 or greater
Write a program that is going to get heightInMeters and weightInKilograms, then it's going to calculate and BMI and related BMI value.

Input specification
There are only two numbers: one float and integer.

Output specification
Show BMI (double) that is going to be followed by BMI value.
Note: You can submit regular double result the program is going to take only the first three digits after the floating point. The program uses
if (abs(yourCalculatedAverage-expectedAverage)>0.001) return ERROR; to decide if given result is correct or not.

Sample Input:
1.7 70

Sample Output:
24.221 Normal

Для отправки решений необходимо выполнить вход.

www.contester.ru