結果

問題 No.1175 Simultaneous Equations
ユーザー ch1channnch1channn
提出日時 2023-01-27 01:58:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 487 bytes
コンパイル時間 836 ms
コンパイル使用メモリ 86,832 KB
実行使用メモリ 71,620 KB
最終ジャッジ日時 2023-09-09 23:13:29
合計ジャッジ時間 2,690 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,292 KB
testcase_01 AC 69 ms
71,308 KB
testcase_02 AC 68 ms
71,412 KB
testcase_03 AC 68 ms
71,296 KB
testcase_04 AC 67 ms
71,540 KB
testcase_05 AC 67 ms
71,132 KB
testcase_06 AC 68 ms
71,336 KB
testcase_07 AC 68 ms
71,396 KB
testcase_08 AC 66 ms
71,304 KB
testcase_09 AC 68 ms
71,576 KB
testcase_10 AC 66 ms
71,620 KB
testcase_11 AC 68 ms
71,396 KB
testcase_12 AC 68 ms
71,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
if sys.platform =='ios':
	import clipboard
	a=clipboard.get()
	a = a.split('\n')
	text = '\n'.join(a)
	with open('input_file.txt','w') as f:
		f.write(text)
	sys.stdin = open('input_file.txt')
sys.setrecursionlimit(4100000)
stdin = sys.stdin 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()
nm = lambda: map(int,input().split())

a,b,c,d,e,f = nm()

x = (c*e-b*f)/(e*a-b*d)
y = (a*f-c*d)/(e*a-b*d)

print(x,y)
0