Triangle 2
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
The program receives input consisting of three natural numbers a, b, and c, provided in a single line and separated by spaces. The output should be one of the following messages:
equilateral: if a triangle with side lengths a, b, and c can be equilateral;
isosceles: if a triangle with side lengths a, b, and c can be isosceles;
versatile: if a triangle with side lengths a, b, and c can be scalene;
invalid: if a triangle with side lengths a, b, and c cannot exist.
Input
Three natural numbers a, b, and c are provided in a single line, separated by spaces.
Output
The appropriate message based on the input.
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #3
Answer #3
Input #4
Answer #4
Input #8
Answer #8
Submissions 11K
Acceptance rate 29%