問題一覧 > 通常問題

No.3181 find H

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-6}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (AC するまで非表示) / 解いたユーザー数 78
作問者 : Cafe1942 / テスター : tsunamayo123 kk2a sclara
お気に入りにしたユーザー ProblemId : 12340 / 自分の提出
問題文最終更新日: 2025-06-13 19:47:20
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 470 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。