#P6468. [COCI 2008/2009 #6] BAZEN

    ID: 7241 远端评测题 1000ms 125MiB 尝试: 0 已通过: 0 显示难度普及 上传者: 标签>2008O2优化COCI(克罗地亚)

[COCI 2008/2009 #6] BAZEN

Problem Description

There is an isosceles right triangle with right-angle side length 250250 placed on the Cartesian coordinate plane as shown in the figure. You need to draw a line segment that divides the area of this triangle into two equal parts, and both endpoints of the segment must lie on the sides of the triangle.

Given the coordinates of the starting point of this segment, find the coordinates where the endpoint should be.

Input Format

Input one line with two integers, representing the coordinates of the starting point of the segment.

Output Format

Output one line with two real numbers, representing the coordinates of the endpoint of the segment.

Since the answer may not be an integer, round it to two decimal places (round half up). This problem uses SPJ.

0 0
125.00 125.00
230 20
0.00 114.13
0 40
148.81 101.19

Hint

Notes

Translated from COCI2008-2009 CONTEST #6 T2 BAZEN

Translated by ChatGPT 5