Functions
Function-09
Function-10
Function-11
~/algor $ cat problems/funksiya-uchburchak-mavjudmi
Is it a triangle
Easy
1000 ms
128 MB
23%
Write a function IsTriangle(a, b, c) that returns true if a triangle with sides $a$, $b$ and $c$ exists and false otherwise. A triangle exists if the sum of any two sides is greater than the third side.
Example 1: IsTriangle(3, 4, 5) → true
Example 2: IsTriangle(1, 2, 3) → false — $1 + 2 = 3$, no triangle is formed.
Write only the function body.
Input
One line with three positive integers $a$, $b$ and $c$ — the arguments of the function.
Output
The value returned by the function: true or false.
Note
$1 \le a, b, c \le 10^{9}$
Examples
Input #1
3 4 5
Output #1
true
Input #2
1 2 3
Output #2
false