## CCC '14 J1 - Triangle Times

View as PDF

Points: 3
Time limit: 2.0s
Memory limit: 64M

Problem type
##### Canadian Computing Competition: 2014 Stage 1, Junior #1

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 , output Equilateral.
• If the three angles add up to and exactly two of the angles are the same, output Isosceles.
• If the three angles add up to and no two angles are the same, output Scalene.
• If the three angles do not add up to , output Error.

#### Input Specification

The input consists of three integers, each on a separate line. Each integer will be greater than and less than .

#### Output Specification

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

#### Sample Input 1

60
70
50

#### Output for Sample Input 1

Scalene

#### Sample Input 2

60
75
55

#### Output for Sample Input 2

Error

• commented on Sept. 29, 2019, 9:32 p.m. edited

1.if you don't spell the words correctly you will get a wrong answer. 2.Don't prompt the judge or it will be wrong

• commented on Dec. 27, 2021, 7:40 p.m.

Thanks so much for commenting that, that is the reason why my code failed for some of my text cases

• commented on Feb. 16, 2021, 11:35 a.m. edited

Ah i see

• commented on Aug. 26, 2017, 11:02 a.m.

This comment is hidden due to too much negative feedback. Show it anyway.

• commented on Dec. 15, 2018, 10:19 p.m.