Accepted
Code
a = sorted(list(map(int,input().split())))
if a[0] + a[1] > a[2]:
ls = len(set(a))
if ls == 3:
print("Scalene")
elif ls == 2:
print("Isosceles")
else:
print("Equilateral")
else:
print("Not a triangle")
Information
- Submit By
- Type
- Submission
- Problem
- P1108 Triangle Triangle Triangle!!!
- Contest
- Brain Booster #8
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2025-02-17 15:05:54
- Judged At
- 2025-02-17 15:05:54
- Judged By
- Score
- 100
- Total Time
- 20ms
- Peak Memory
- 3.121 MiB