Triangle Triangle Triangle!!!
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Time Limit: 1.0 s
Memory Limit: 256.0 MB
Description
Given three sides determine whether a triangle can be formed or not.
If a triangle can be formed then, determine the type of triangle.
Types of Triangles:
- Length of all sides different, "Scalene".
- Length of two side is equal, "Isosceles".
- Length of all sides is equal, "Equilateral".
Input
- You will be given three integers, A, B, C. Denoting length of three sides.
Constraints
1 <= A, B, C <= 100
Output
If no triangle can be formed, then print "Not a triangle".
If Scalene triangle can be formed, then print "Scalene".
If Isosceles triangle can be formed, then print "Isosceles".
If Equilateral triangle can be formed, then print "Equilateral".
Sample
Input | Output |
---|---|
|
|
|
|
|
|
|
|
Brain Booster #8
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2025-02-17 14:30
- End at
- 2025-02-17 17:00
- Duration
- 2.5 hour(s)
- Host
- Partic.
- 142