시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 256 MB 2925 1648 1514 57.720%

문제

창영이는 삼각형의 종류를 잘 구분하지 못한다. 따라서 프로그램을 이용해 이를 외우려고 한다.

삼각형의 세 각을 입력받은 다음, 

  • 세 각의 크기가 모두 60이면, Equilateral
  • 세 각의 합이 180이고, 두 각이 같은 경우에는 Isosceles
  • 세 각의 합이 180이고, 같은 각이 없는 경우에는 Scalene
  • 세 각의 합이 180이 아닌 경우에는 Error

를 출력하는 프로그램을 작성하시오.

입력

총 3개의 줄에 걸쳐 삼각형의 각의 크기가 주어진다. 모든 정수는 0보다 크고, 180보다 작다.

출력

문제의 설명에 따라 Equilateral, Isosceles, Scalene, Error 중 하나를 출력한다.

예제 입력 1

60
70
50

예제 출력 1

Scalene
W3sicHJvYmxlbV9pZCI6IjEwMTAxIiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVjMGJjXHVhYzAxXHVkNjE1IFx1YzY3OFx1YzZiMFx1YWUzMCIsImRlc2NyaXB0aW9uIjoiPHA+XHVjYzNkXHVjNjAxXHVjNzc0XHViMjk0IFx1YzBiY1x1YWMwMVx1ZDYxNVx1Yzc1OCBcdWM4ODVcdWI5NThcdWI5N2MgXHVjNzk4IFx1YWQ2Y1x1YmQ4NFx1ZDU1OFx1YzljMCBcdWJhYmJcdWQ1NWNcdWIyZTQuIFx1YjUzMFx1Yjc3Y1x1YzExYyBcdWQ1MDRcdWI4NWNcdWFkZjhcdWI3YThcdWM3NDQgXHVjNzc0XHVjNmE5XHVkNTc0IFx1Yzc3NFx1Yjk3YyBcdWM2NzhcdWM2YjBcdWI4MjRcdWFjZTAgXHVkNTVjXHViMmU0LjxcL3A+XHJcblxyXG48cD5cdWMwYmNcdWFjMDFcdWQ2MTVcdWM3NTggXHVjMTM4IFx1YWMwMVx1Yzc0NCBcdWM3ODVcdWI4MjVcdWJjMWJcdWM3NDAgXHViMmU0XHVjNzRjLCZuYnNwOzxcL3A+XHJc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0d28gYW5nbGVzIGFyZSB0aGUgc2FtZSwgb3V0cHV0IFNjYWxlbmUuPFwvbGk+XHJcblx0PGxpPklmIHRoZSB0aHJlZSBhbmdsZXMgZG8gbm90IGFkZCB1cCB0byAxODAsIG91dHB1dCBFcnJvci48XC9saT5cclxuPFwvdWw+XHJcbiIsImlucHV0IjoiPHA+VGhlIGlucHV0IGNvbnNpc3RzIG9mIHRocmVlIGludGVnZXJzLCBlYWNoIG9uIGEgc2VwYXJhdGUgbGluZS48XC9wPlxyXG5cclxuPHA+RWFjaCBpbnRlZ2VyIHdpbGwgYmUgZ3JlYXRlciB0aGFuIDAgYW5kIGxlc3MgdGhhbiAxODAuPFwvcD5cclxuIiwib3V0cHV0IjoiPHA+RXhhY3RseSBvbmUgb2YgRXF1aWxhdGVyYWwsIElzb3NjZWxlcywgU2NhbGVuZSBvciBFcnJvciB3aWxsIGJlIHByaW50ZWQgb24gb25lIGxpbmUuPFwvcD5cclxuIiwiaGludCI6IiIsIm9yaWdpbmFsIjoiMSIsInByb2JsZW1fbGFuZ19jb2RlIjoiXHVjNjAxXHVjNWI0In1d

출처

Olympiad > Canadian Computing Competition & Olympiad > 2014 > CCC 2014 Junior Division 1번