HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


51103 - Is it a triangle?

Guest
• Review clarifications (2)

Section problems

• 50882 - Say Hello
• 50951 - Odd Numbers
• 50883 - Win or Lose
• 51112 - Even Numbers
• 50892 - Even Numbers
• 51105 - Currency System
• 50891 - Smallest Number
• 50965 - Draw the Pattern
• 51103 - Is it a triangle?
• 50945 - Bigger or Smaller
• 50946 - Area of Rectangle
• 50949 - Vowel or Consonant
• 50881 - Exchange the Values
• 51114 - The traveling vehicle
• 50937 - Calculate the Average
• 50947 - Calculate the Average
• 50964 - Increasing or Decreasing

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.

Is it a triangle?

Write a program to check whether a triangle is valid or not, when the three angles of the triangle are the inputs. A triangle is valid if the sum of all the three angles is equal to 180 degress.

Input specification
The first line contains three angles A, B and C of triangle separated by space.

Output specification
Display 'YES' or 'NO' if the triangle is valid or not.
Constraints
0 ≤ T ≤ 1001
0 ≤ A,B,C ≤ 180

 Sample Input I     Sample Input II   
30 40 110
60 60 50
 Sample Output I     Sample Output II   
YES
NO


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

www.contester.ru