結果

問題 No.1175 Simultaneous Equations
ユーザー StarMatyanStarMatyan
提出日時 2020-11-23 21:31:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 642 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 10,972 KB
実行使用メモリ 7,896 KB
最終ジャッジ日時 2023-10-01 00:09:28
合計ジャッジ時間 1,364 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,784 KB
testcase_01 AC 14 ms
7,868 KB
testcase_02 AC 14 ms
7,860 KB
testcase_03 AC 15 ms
7,896 KB
testcase_04 AC 15 ms
7,860 KB
testcase_05 AC 15 ms
7,816 KB
testcase_06 AC 15 ms
7,868 KB
testcase_07 AC 14 ms
7,832 KB
testcase_08 AC 16 ms
7,860 KB
testcase_09 AC 14 ms
7,888 KB
testcase_10 AC 14 ms
7,824 KB
testcase_11 AC 14 ms
7,812 KB
testcase_12 AC 14 ms
7,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int_input = input()
int_s = int_input.split(" ")

a_int = int(int_s[0])
b_int = int(int_s[1])
c_int = int(int_s[2])
d_int = int(int_s[3])
e_int = int(int_s[4])
f_int = int(int_s[5])

ae_int = int(a_int*e_int)
db_int = int(b_int*d_int)
ce_int = int(c_int*e_int)
cd_int = int(c_int*d_int)
fb_int = int(f_int*b_int)
fa_int = int(f_int*a_int)

x_bunbo = (ae_int-db_int)
y_bunbo = (db_int-ae_int)
x_bunsi = (ce_int-fb_int)
y_bunsi = (cd_int-fa_int)

x_result = round(x_bunsi/x_bunbo,15)
y_result = round(y_bunsi/y_bunbo,15)

x_result_s = str("{:.15f}".format(x_result))
y_result_s = str("{:.15f}".format(y_result))
print(x_result_s+" "+y_result_s)
0