시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 52 4 4 23.529%

문제

한삼덕은 삼각형을 아름답게 그리는 세계적인 미술가이다. 이 미술가가 그린 삼각형은 보는 이의 마음을 빼앗아 버리며, 걸어가는 사람들의 걸음마저 멈추게 한다. 사람들은 그가 그린 삼각형은 예각, 직각, 둔각도 아니고, 정삼각형, 이등변삼각형도 아니라고 생각했다. 그 오묘한 변의 길이와 알 수 없는 각도, 보는 이의 마음을 편안하게 하는 넓이까지 사람들은 삼각형의 매력에 푹 빠져 있었다.

희원이는 삼덕이의 삼각형을 보고 아름답지 않다고 생각하는 사람이다. 희원이는 삼덕이가 그린 삼각형도 특별한 삼각형이 아니라는 것을 보여주려고 한다.

희원이는 삼덕이의 삼각형을 다음과 같이 분류하려고 한다.

삼각형을 변의 길이로 분류하면 3가지가 있다.

Scalene: 모든 변의 길이가 같지 않음

Isosceles: 두 변의 길이가 같음

Equilateral: 세 변의 길이가 같음

또, 각을 기준으로 분류해도 3가지가 있다.

Acute: 모든 각이 90도보다 작음

Right: 한 각의 크기가 90도

Obtuse: 한 각의 크기가 90도보다 큼

삼덕이가 그린 삼각형이 주어졌을 때, 이 삼각형이 어떤 삼각형인지 출력하는 프로그램을 작성하시오.

입력

입력은 여러 개의 테스트 케이스로 이루어져 있다. 각 케이스는 삼덕이가 그린 삼각형의 꼭지점 좌표이고, 소수점 셋째 자리까지 주어진다. 꼭지점 좌표는 x1, y1, x2, y2, x3, y3 순서이다. 입력의 마지막 줄에는 -1이 하나 있다.

한 각의 각도가 88-92범위에 있는 직각 삼각형이 아닌 삼각형, 두 변의 길이의 차이가 0.01 이내인 삼각형은 입력으로 주어지지 않는다.

출력

입력으로 주어진 삼각형을 변의 길이로 분류한 결과와 각의 크기로 분류한 결과를 공백으로 구분하여 출력한다. 만약, 삼각형이 아닌 경우에는 Not a Triangle을 출력한다.

예제 입력 1

10.000 10.000 10.000 20.000 20.000 10.000
0.000 0.000 4.000 0.000 2.000 3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W91LjxcL3A+XHJcbiIsImlucHV0IjoiPHA+T25lIHRyaWFuZ2xlIGlzIGRlc2NyaWJlZCBwZXIgbGluZS4gRWFjaCBsaW5lIGhhcyBzaXggbWVhc3VyZW1lbnRzIHRha2VuIHRvIHRoZSBuZWFyZXN0IDAuMDAxIGluIHRoZSBvcmRlcjo8XC9wPlxyXG5cclxuPHByZT5cclxueDEgeTEgeDIgeTIgeDMgeTM8XC9wcmU+XHJcblxyXG48cD5UaGUgZmluYWwgbGluZSBvZiBpbnB1dCB3aWxsIGNvbnRhaW4gb25seSBhIC0xLjxcL3A+XHJcblxyXG48cD5Ob25lIG9mIHRoZSB0ZXN0IHNldHMgY29udGFpbiBub24tcmlnaHQgYW5nbGVzIGluIHRoZSByYW5nZSA4OC05MiBkZWdyZWVzLCBub3IgZG8gYW55IG9mIHRoZSB0ZXN0IHNldHMgaW5jbHVkZSBhbnkgbm9uLWVxdWFsIHNpZGUgbGVuZ3RocyBmb3Igb25lIHRyaWFuZ2xlIHdpdGhpbiAwLjAxIG9mIG9uZSBhbm90aGVyLjxcL3A+XHJcbiIsIm91dHB1dCI6IjxwPllvdSB3aWxsIG91dHB1dCBvbmUgbGluZSBmb3IgZWFjaCB0cmlhbmdsZSwgd2hpY2ggd2lsbCBjb250YWluIHR3byB3b3Jkczo8XC9wPlxyXG5cclxuPHByZT5cclxuJmx0O2xlbmd0aCBjbGFzc2lmaWNhdGlvbiZndDsgJmx0O2FuZ2xlIGNsYXNzaWZpY2F0aW9uJmd0OzxcL3ByZT5cclxuXHJcbjxwPm9yPFwvcD5cclxuXHJcbjxwcmU+XHJcbk5vdCBhIFRyaWFuZ2xlXHJcbjxcL3ByZT5cclxuIiwiaGludCI6IiIsIm9yaWdpbmFsIjoiMSIsInByb2JsZW1fbGFuZ19jb2RlIjoiXHVjNjAxXHVjNWI0In1d

출처

ACM-ICPC > Regionals > North America > Mid-Atlantic Regional > 2003 Mid-Atlantic Regional Programming Contest F번

  • 문제를 번역한 사람: baekjoon
  • 문제의 오타를 찾은 사람: rootcucu