P27782 [洛谷] Triangle Check
普及-
题目描述

Problem Description

Given three positive integers representing the lengths of three line segments, determine whether these three segments can form a triangle.

Input Format

The input consists of a single line containing three positive integers, each representing the length of a line segment, separated by a space. (The length of each side does not exceed $10000$.)

Output Format

If the segments can form a triangle, output 1; otherwise, output 0.

Sample Input and Output

Sample Input #1

1 1 1

Sample Output #1

1

Sample Input #2

1 1 3

Sample Output #2

0

Notes

The condition for forming a triangle:

The sum of the lengths of any two sides must be greater than the length of the third side.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
1 1 1
样例输出
1