Is it a buildable triangle?
Statement
The goal is to determine if the triangle is buildable using triangular inequality.
[[x]], [[y]] and [[z]] are each sides of the same triangle.
Input description
<<Line 1 :>> Integers [[x]], [[y]] and [[z]] separated by space.
Output description
<<true>> if it's a triangle.
<<false>> if not.
Constraints
[[x]] > 0, [[y]] > 0, [[z]] > 0
Game modes
Test cases
Test 1 Test
Input
1 2 2
Output
true
Validator 1 Validator
Input
5 6 3
Output
true
Test 2 Test
Input
3 9 2
Output
false
Validator 2 Validator
Input
1 2 9
Output
false
Test 3 Test
Input
1 2 3
Output
true
Validator 3 Validator
Input
5 11 6
Output
true
Test 4 Test
Input
301 187 154
Output
true
Validator 4 Validator
Input
10891 6614 4791
Output
true
Solution language
Solution
Stub generator input