結果

問題 No.1175 Simultaneous Equations
ユーザー mlihua09mlihua09
提出日時 2020-08-21 21:29:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 82,260 KB
実行使用メモリ 53,744 KB
最終ジャッジ日時 2024-04-23 05:28:18
合計ジャッジ時間 1,277 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,688 KB
testcase_01 AC 37 ms
52,700 KB
testcase_02 AC 37 ms
52,768 KB
testcase_03 AC 38 ms
53,268 KB
testcase_04 AC 37 ms
52,236 KB
testcase_05 AC 37 ms
52,684 KB
testcase_06 AC 38 ms
52,872 KB
testcase_07 AC 38 ms
53,012 KB
testcase_08 AC 36 ms
52,360 KB
testcase_09 AC 38 ms
51,956 KB
testcase_10 AC 38 ms
53,744 KB
testcase_11 AC 38 ms
52,376 KB
testcase_12 AC 38 ms
52,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d, e, f = map(int, input().split())


if a * e == b * d:
    if b:
        print(0, c / b)
    
    elif a:
        print(c / a, 0)
        
    else:
        print(0, 0)



else:
    print((c * e - b * f) / (a * e - b* d), (a * f - c * d) / (a * e - b* d))
0