HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


040. Problem 1

Volume problems

• 003. 50349 - Area of a Triangle
• 004. 50350 - Fahrenheit to Celsius
• 010. 50357 - Convert Euros into Dol...
• 015. 50356 - Hours Passed
• 020. 50351 - Convert inches to cm
• 025. 50294 - Centimeters to Yards
• 030. 50341 - Separate Into Digits
• 040. 50879 - Passed or Failed
• 040. Problem 1
• 055. 50355 - Bills of City Water Co...
• 060. 50583 - Max of 3 numbers
• 065. 50436 - Pocket Money
• 070. 50439 - Telephone Calls
• 080. 50478 - Letter Grades
• 090. 50422 - Area and Perimeter of...
• 222. 50302 - Paper Scissors Rock
• 50310 - Kinetic Energy

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.
bfs.

Passed or Failed

Your professor wants to calculate student results automatically. He has 3 exam results (grade1, grade2, grade3) and according the average of these grades he wants to decide if the student has passed or failed. A student fails if his/her average is less than 60; passes otherwise.

Question:
Write a program that is going to read 3 marks of the student and then it will decide if the student has "Passed" or "Failed".

Input specification
You will be given three integer numbers where each of them can be between 0 and 100.

Output specification
Calculate the average. If the average is greater than or equal to 59.5 then, show the message "Passed", "Failed" otherwise.

Sample Input I
  60 70 80
Sample Input II
  30 50 70
Sample Output I
  Passed
Sample Output II
  Failed


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

www.contester.ru