Home computickets How to determine the maximum two comparisons exists a triangle with the...

How to determine the maximum two comparisons exists a triangle with the sides of the length a, b and s?

Author

Date

Category

three numbers are given: a, b, c. How to determine for maximum two comparisons
Is there a triangle with the sides of length a, b and s?

in the case of a + b & gt; c, a + c & gt; b, b + c & gt; a, (A & gt; 0, b & gt; 0, c & gt; 0) everything is clear, but how to make This is for 2 comparisons?

PS The question is not a training, met when preparing for sobesu 🙂


Answer 1, Authority 100%

a + b & gt; C.
ABS (A - B) & LT; C.

Answer 2, Authority 100%

Here is another option, from the scalar product of vectors

In general, they are ultimately one of the following to another …

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions