Problem list
Log in
#r03684 · CCC 2014 Junior

Triangle Times

Bronze IV 2.0 s 256 MB

You have trouble remembering which type of triangle is which. You write a program to help.

Your program reads in three angles (in degrees).

  • If all three angles are 60, output Equilateral.

  • If the three angles add up to 180 and exactly two of the angles are the same, output Isosceles.

  • If the three angles add up to 180 and no two angles are the same, output Scalene.

  • If the three angles do not add up to 180, output Error.

Input

The input consists of three integers, each on a separate line.

Each integer will be greater than 0 and less than 180.

Output

Exactly one of Equilateral, Isosceles, Scalene or Error will be printed on one line.

Example 1

Input
60
70
50
Output
Scalene

Example 2

Input
60
75
55
Output
Error
Source
CCC 2014 Junior
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