- 1

Tell me about this question?

triple of numbers (a,b,c) is called a triangle triple if we can form a triangle of lengths a, b and c. In this question, you will be given three numbers. You have to output 1 if the three numbers can form a triangle. Otherwise, you have to output 0.

7th Sep 2018, 11:26 AM
Vignesh
Vignesh - avatar
1 Odpowiedź
+ 2
you can form a triangle from three lines of a given size only when the sum of the enghts of TWO SMALLER LINES is greater than the lenght of the longest line. simple, huh?
7th Sep 2018, 11:43 AM
Paul