Create a triangle
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given the lengths of three segments. Is it possible to construct from them the non-degenerate triangle? The triangle is non-degenerate if it has positive area.
Input
Three positive integers — the lengths of three segments.
Output
Print "YES" if it's possible to create the non-degenerate triangle from the given segments and "NO" otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 14K
Acceptance rate 48%