Bazen
의견: 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 with vertices at \((0, 0)\), \((250, 0)\) and \((0, 250)\), 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.
| 서브태스크 | 점수 | 설명 |
|---|---|---|
Subtask 1 | 60점 |
0 0125.00 125.00230 200.00 114.130 40148.81 101.19평가 및 의견
Bazen
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Bazen