How to determine for a maximum of two comparisons whether there is a triangle with sides of length a, b and c?

Given three numbers: a, b, c. How to determine for a maximum of two comparisons whether there is a triangle with sides of length a, b and c?

In the case of a+b>c, a+c>b, b+c>a, (a>0, b>0, c>0), everything is clear, but how to do it for 2 comparisons?

Ps the question is not educational, met in preparation for sobes :)

Author: Mikhailo, 2020-02-26

2 answers

a + b > c
abs(a - b) < c
 3
Author: Igor, 2020-02-26 01:49:34

Here is another option, from the scalar product of the vectors

enter a description of the image here

In general, all of them eventually come down to one another...

 3
Author: Harry, 2020-02-26 09:33:22