Valid Triangle Sides
Decide whether three lengths can form a triangle.
Input format
A single line with three positive integers A, B, and C, the candidate side lengths.
Output format
Print true if the three lengths can form a triangle, otherwise print false.
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
3 4 5Expected output
trueExample 2
Input
1 2 10Expected output
false