Time Limit: 1 sec
You are given three angles. You have to find whether these angles belong to same triangle or not.
First line of input contains an integer N (0<N<100), which indicates the number of triangles.
Then there are N lines, each line contains 3 integers A, B, C (0<=A,B,C<=360) which represent the value of three angles in degree.
For each input you have to print “YES” or “NO” (without quotation). If the angles belong to same triangle print “YES” otherwise print “NO”.
30 60 90
45 45 45
ISCPC 2017 Preliminary
Problem Setter: Puja Chakraborty