2014 Canadian Computing Competition, Stage 1
Problem J1: Triangle Times
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
- If the three angles add up to 180 and exactly two of the angles are the same, output
- If the three angles add up to 180 and no two angles are the same, output
- If the three angles do not add up to 180, output
The input consists of three integers, each on a separate line.
Each integer will be greater than 0 and less than 180.
Exactly one of
Error will be printed on one line.
Sample Input 1
60 70 50
Sample Output 1
Sample Input 2
60 75 55
Sample Output 2
Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Feb 27, 2014
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3