#940
Gold III
BAZEN
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Mirko and Slavko have built a grand new pool in front of their weekend getaway. The pool is an isosceles right triangle, with legs of length 250.

Everything was perfect, girls were coming, the DJ was coming, and the parties were wild. But, a problem arose when they started serving food at the parties. Mirko is vegetarian, while Slavko thinks a party without sausages is no party at all. Therefore they had to divide the pool into two parts. The pool is placed into a coordinate system (as in the figure above) and divided into two parts of equal area by a line segment with both endpoints on the edges of the pool. Write a program that, given one endpoint of the dividing line segment, calculates the coordinates of the other endpoint.

입력

The first line contains two integers, the coordinates of one endpoint of the dividing line segment. That point will be on one of the edges of the pool.

출력

Output the coordinates of the other endpoint, rounded to two decimal digits.

예제 입력 1

0 0

예제 출력 1

125.00 125.00

예제 입력 2

230 20

예제 출력 2

0.00 114.13

예제 입력 3

0 40

예제 출력 3

148.81 101.19
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Gold III1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.