claimsecond / is_triangle-check

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is_triangle is a function that takes three arguments a, b, and c, which represent the lengths of the sides of a triangle. The function returns 1 if the three sides can form a triangle, and 0 otherwise. A triangle is formed if and only if the sum of the lengths of two sides is greater than the length of the third side for all possible combinations of sides.

Pairwise.txt file represents sample set of a,b,c arguments obtained assuming that each argument can have 1, 0, -1, 2^32-1, 2^32 as input.

About


Languages

Language:Python 100.0%