結果

問題 No.1175 Simultaneous Equations
ユーザー xuanjixuanji
提出日時 2020-08-21 21:27:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 82,336 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-10-15 05:07:44
合計ジャッジ時間 1,319 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

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