#C9114. Triangle Validity Check

    ID: 53172 Type: Default 1000ms 256MiB

Triangle Validity Check

Triangle Validity Check

In this problem, you are given three integers representing the lengths of the sides of a potential triangle. Your task is to determine whether these sides can form a valid triangle.

A triangle is valid if and only if every pair of sides adds up to more than the third side. In mathematical terms, for sides a, b, and c, the following conditions must all be satisfied:

  • \(a + b > c\)
  • \(a + c > b\)
  • \(b + c > a\)

Additionally, all sides must be positive integers.

inputFormat

The input consists of three space-separated integers provided via standard input (stdin). These integers represent the lengths of the sides of the triangle.

Example:

3 4 5

outputFormat

Output a single line via standard output (stdout) with either True if the given sides can form a valid triangle, or False if they cannot.

Example:

True
## sample
3 4 5
True