Dec 8, 2021 at 1:59am Dec 8, 2021 at 1:59am UTC
...
Last edited on Dec 10, 2021 at 6:19pm Dec 10, 2021 at 6:19pm UTC
Dec 8, 2021 at 2:42am Dec 8, 2021 at 2:42am UTC
brute force works...
if (a+b > c) && (a+c > b) && (b+c > a)
Dec 9, 2021 at 10:34am Dec 9, 2021 at 10:34am UTC
I should make a, b, c into doubles or your triangles will be a bit restricted.
Tests:
min( { a, b, c } ) > 0
and
a + b + c > 2 * max( { a, b, c } )
Dec 11, 2021 at 1:50am Dec 11, 2021 at 1:50am UTC
Looks like the spam bot troll didn't like our reluctance to just write all the code for them for free.
Dec 17, 2021 at 3:46pm Dec 17, 2021 at 3:46pm UTC
Anyone else report the litte prick? I hope he didn't have enough post whatever to prevent him from getting OUSTED.
Dec 17, 2021 at 3:58pm Dec 17, 2021 at 3:58pm UTC
The original question was regarding testing whether 3 lengths (a, b ,c) could form a triangle.
Dec 17, 2021 at 5:35pm Dec 17, 2021 at 5:35pm UTC
The spam bot troll has been around long enough, with enough posts, that reporting the troll does nothing other than simply red flag his trolling.
Dec 20, 2021 at 2:04am Dec 20, 2021 at 2:04am UTC
Well, that little son-of-a-Bob-Wiley...