結果

問題 No.1175 Simultaneous Equations
ユーザー xuanjixuanji
提出日時 2020-08-21 21:27:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,648 KB
実行使用メモリ 53,560 KB
最終ジャッジ日時 2024-04-23 05:25:21
合計ジャッジ時間 1,093 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,904 KB
testcase_01 AC 36 ms
52,944 KB
testcase_02 AC 35 ms
52,392 KB
testcase_03 AC 33 ms
52,960 KB
testcase_04 AC 37 ms
53,280 KB
testcase_05 AC 35 ms
53,288 KB
testcase_06 AC 35 ms
52,744 KB
testcase_07 AC 34 ms
53,560 KB
testcase_08 AC 33 ms
51,880 KB
testcase_09 AC 33 ms
52,248 KB
testcase_10 AC 32 ms
53,316 KB
testcase_11 AC 32 ms
52,812 KB
testcase_12 AC 33 ms
52,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env pypy3

a, b, s, c, d, t = input().split()
a = int(a)
b = int(b)
c = int(c)
d = int(d)
s = int(s)
t = int(t)

import sys

if a*d == b*c:
	print(0, 0)
else:
	det = a*d - b*c
	a,b,c,d = a/det, b/det, c/det, d/det
	a,b,c,d = d, -b, -c, a

	x = a*s + b*t
	y = c*s + d*t

	print(x, y)
0