HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50798 - Passing the course

Guest
• Review clarifications (3)

Section problems

• 50425 - Calculating Weekly Pay
• 50438 - Pattern with stars
• 50820 - Post Office
• 50810 - Print Office
• 50952 - Derby Tirana
• 50443 - Dajte Express
• 50819 - Linked Numbers
• 50519 - Image Filtering
• 50798 - Passing the course
• 50799 - OSHEE Electric Bill
• 50833 - Min of Odd Positions
• 50821 - Derivative of an array
• 50808 - Total Distance Traveled
• 50452 - Multiplication Table
• 50456 - nth Digit of a Number
• 50817 - The Knight Move
• 50463 - Drawing a Triangle

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.

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