No.3181 find H
タグ : / 解いたユーザー数 78
作問者 :
Cafe1942
/ テスター :
tsunamayo123
Problem Statement
A triangle was formed by taking $3$ distinct points on the circumference of a circle of radius $R$ centered at the origin $O = (0,0)$. The centroid $G$ of this triangle was located at coordinates $(G_X,G_Y)$. Find the coordinates of the orthocenter of this triangle.
Constraints
- $1 \leq R \leq 10^{18}$
- $-10^{18} < G_X , G_Y < 10^{18}$
- $|OG| < R$
- All values given in the input are integers.
Input
$R$ $G_X$ $G_Y$
Output
Print the $X$ coordinate and the $Y$ coordinate of the orthocenter, separated by a space.
Your answer is judged correct if the absolute error or the relative error from the true solution is at most $10^{-6}$.
Sample
Sample 1
Input
5 -2 1
Output
-6.000000000 3.000000000
Your answer is judged correct if the absolute error or the relative error from the true solution is at most $10^{-6}$.
Sample 2
Input
1 0 0
Output
0 0
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。