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

Сборники > Beginners > задача:


042. 50798 - Passing the course

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

Задачи сборника

• 015. 50356 - Hours Passed
• 020. 50351 - Convert inches to cm
• 025. 50294 - Centimeters to Yards
• 028. 50521 - Pound to Grams
• 030. 50341 - Separate Into Digits
• 034. 50502 - Welcome Andi - 1
• 040. 50879 - Passed or Failed
• 040. Student results
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 050. 50568 - Llogaritesi i indeksit te...
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 055. 50355 - Bills of City Water Co...
• 060. 50583 - Numri ma te madhe n...
• 062. 50402 - Hello World!

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

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

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

Passing the course

Your professor is calculating the course average this way:
  • 45% of the final exam,
  • 35% of the Midterm exam,
  • 20% of the homework
After calculating the student average, he wants to decide if the student has passed or failed. Write a program that reads 3 exam results and then decides if the student has passed or failed. A student passes if his average is greater than or equal to 59.5.

Input specification
You will be given three integers: Final exam result, Midterm exam result, and Homework where 0 ≤ each grade ≤ 100.

Output specification
Show just one result: "Passed", or "Failed"

Sample Input 1
70 75 60
Sample Input 2
20 70 80
Sample Output 1
Passed
Sample Output 2
Failed

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

www.contester.ru