Epoka Science Olympiad 2017 - 10th Grade |
Start: May.06.2017 at 10:00:00 AM
Finish: May.06.2017 at 12:30:00 PM
The contest is finished!
• Contest scoreboard
|
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
|
Для отправки решений необходимо выполнить вход.
|