Logo
(追記) (追記ここまで)

4094번 - Equal Angles 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB146642.857%

문제

The All-Equal company has been tasked with placing towers on triangular plots so that the angles formed between the towers and the sides of the plots are equal. Given a triangle defined by points A, B and C, there are two such points - call them P and Q. There is one where angles PAB = PBC = PCA, and one where angles QBA = QCB = QAC.

입력

There will be several test cases in the input. Each test case will consist of six integers on a single line:

AX AY BX BY CX CY

Each integer will be in the range from -100 to 100. These integers represent the three points of the triangle: (AX,AY), (BX,BY) and (CX,CY). The points are guaranteed to form a triangle: they will be distinct, and will not all lie on the same line. The input will end with a line with six 0s.

출력

For each test case, output four space-separated real numbers:

PX PY QX QY

Where (PX,PY) and (QX,QY) are the requested points. Print each real number with exactly two decimal places, rounded, and put a single space between them. Print no blank lines between outputs.

제한

예제 입력 1

-4 5 -10 0 7 0
-15 -5 15 -5 0 21
0 0 0 0 0 0

예제 출력 1

-6.26 1.28 -1.96 3.07
0.01 3.66 -0.01 3.66

힌트

출처

ICPC > Regionals > North America > Southeast USA Regional > 2010 Southeast USA Regional Programming Contest D번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /