ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Unsorted > задача:


51104 - Steel

Гость
• Вопросы к жюри (1)

Задачи раздела

• 50945 - Bigger or Smaller
• 50946 - Area of Rectangle
• 50949 - Vowel or Consonant
• 50881 - Exchange the Values
• 50937 - Calculate the Average
• 50947 - Calculate the Average
• 50964 - Increasing or Decreasing
• 50948 - Translate Score into Grade
• 51104 - Steel
• 51113 - The Menu
• 51112 - Even Numbers
• 51105 - Currency System
• 51103 - Is it a triangle?
• 51114 - The traveling vehicle
• 50251 - Symmetric matrix
• 50252 - Birthday
• 50239 - Eating cheese

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.

Steel

Question: A certain grade of steel is graded according to the following conditions.

  1. Hardness must be greater than 50.
  2. Carbon content must be less than 0.7.
  3. Tensile strength must be greater than 5600.

The grades are as follows:

  1. Grade is 10 if all three conditions are met.
  2. Grade is 9 if conditions (i) and (ii) are met.
  3. Grade is 8 if conditions (ii) and (iii) are met.
  4. Grade is 7 if conditions (i) and (iii) are met.
  5. Grade is 6 if only one condition is met.
  6. Grade is 5 if none of three conditions are met.

Write a program, if the user gives values of hardness, carbon content and tensile strength of the steel under consideration and display the grade of the steel.

Input specification: The first line contains three numbers hardness, carbon content and tensile strength of the steel.

Output specification: Print Grade of the steel depending on Conditions.

Constraints 0 ≤ hardness, carbon content, tensile strength ≤ 10000

Sample Input Sample Output
53 0.6 5602
0 0 0
10
6



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

www.contester.ru