Problem list
Log in
#r03326 · Online Judge > GoldOJ

Triangle Type

Bronze II 2.0 s 1024 MB

Three integers with $a \le b \le c$ are given. Print A if they form an equilateral triangle, C if a right triangle, B if an (otherwise) isosceles triangle, D if a scalene triangle, and E if no triangle can be formed. Checks are applied in the order E, A, C, B, D.

Input

Three integers $a$, $b$, $c$ ($1 \le a \le b \le c \le 100$).

Output

Print one of A, B, C, D, E.

Example 1

Input
3 4 5
Output
C
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code