問題一覧 > 通常問題

No.1175 Simultaneous Equations

レベル : / AI推定難易度 : 115 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 小数誤差許容問題 絶対誤差または相対誤差が $10^{-4}$ 以下。ただし、ジャッジ側の都合で500桁未満にしてください
タグ : (解説公開後に AC するまで非表示) / 解いたユーザー数 343
作問者 : okazakisteve / テスター : NatsubiSogan
お気に入りにしたユーザー ProblemId : 4810 / 自分の提出
問題文最終更新日: 2020-08-21 21:30:38
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 262 (順位表) の他の問題:

Problem Statement

Solve the system of simultaneous equations $\begin{eqnarray} \left\{ \begin{array}{l} ax + by = c \\ dx + ey = f \end{array} \right. \end{eqnarray}$ .

Input

$a$ $b$ $c$ $d$ $e$ $f$

  • All inputs are integers.
  • $1 \leq a,b,c,d,e,f \leq 100$
  • It is guaranteed that for the given input, a solution always exists and is uniquely determined (added 8/21 21:30).

Output

Print the solution $(x,\ y)$ of the given system of equations on one line, separated by a space.
Your answer is considered correct if the absolute error or relative error from the expected answer is at most $10^{-4}$.
Print a newline at the end.

Sample

Sample 1
Input
1 1 2 1 2 3
Output
1.000000000000000 1.000000000000000

Sample 2
Input
2 1 5 1 2 2
Output
2.666666666666667 -0.333333333333333

The solution may be negative.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。