-8. Triangle Length

I'm a slow walker, but I never walk backwards.

題目來源:judgegirl from ntu prof. pangfeng Liu

Task Description

Write a program to print 1 if the three positive integers , , and are valid lengths of a triangle; print 0 otherwise. We can verify the condition by assuring that all , , and are positive, and the sum of any two of them is greater than the third.

給三個整數 分別代表三角形的邊長。如果能拼成一個三角形,輸出 1,反之輸出 0。判斷三角形是否合法:任兩個邊長和大於第三邊。

Input Format

There are three lines in the input. The first line has the integer , the second line has the integer , and the third line has the integer .

Output Format

There is one line in the output. The line has 1 if the lengths are valid, 0 otherwise.

Sample Input

1
2
3

Sample Output

0

Sample Input

2
4
3

Sample Output

1

Submit

Login

Testdata Set

Download Testdata