Triangle Check and Classification

Xem dạng PDF

Gửi bài giải

Điểm: 100,00 (OI)
Giới hạn thời gian: 1.0s
Giới hạn bộ nhớ: 125M
Input: stdin
Output: stdout

Người đăng:
Dạng bài

You are given three integers ~a~, ~b~, and ~c~ representing the lengths of three sides. You must determine whether these can form a triangle. If they do form a triangle, check whether the triangle is:

Right-angled isosceles (a right triangle with two equal sides),

Right-angled only,

Isosceles only,

Or a normal triangle.

Input:

Three integers ~a, b, c (1 ≤ a, b, c ≤ 1000)~

Output:

Print one of the following:

Right Isosceles Triangle

Right Triangle

Isosceles Triangle

Normal Triangle

Not a Triangle

✅ Sample Input 1:

5 5 7

✅ Sample Output 1:

Isosceles Triangle

✅ Sample Input 2

6 8 10

✅ Sample Output 2

Right Triangle

Bình luận

Hãy đọc nội quy trước khi bình luận.


Không có bình luận tại thời điểm này.