結果

問題 No.1175 Simultaneous Equations
ユーザー yudedakoyudedako
提出日時 2020-08-22 09:57:57
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 376 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 12,796 ms
コンパイル使用メモリ 426,560 KB
実行使用メモリ 54,936 KB
最終ジャッジ日時 2024-04-23 07:00:46
合計ジャッジ時間 18,463 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 373 ms
53,116 KB
testcase_01 AC 366 ms
53,208 KB
testcase_02 AC 376 ms
53,328 KB
testcase_03 AC 372 ms
52,892 KB
testcase_04 AC 373 ms
54,936 KB
testcase_05 AC 371 ms
53,016 KB
testcase_06 AC 369 ms
53,236 KB
testcase_07 AC 372 ms
52,976 KB
testcase_08 AC 370 ms
53,048 KB
testcase_09 AC 373 ms
53,360 KB
testcase_10 AC 368 ms
53,036 KB
testcase_11 AC 374 ms
53,148 KB
testcase_12 AC 372 ms
53,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import kotlin.math.min

const val MOD = 1000000007L
operator fun <T> List<T>.component6(): T {
    return this[5]
}

fun main() {
    val (a, b, c, d, e, f) = readLine()!!.trim().split(' ').map(String::toDouble)
    val x = (c - b / e * f) / (a - b / e * d)
    val y = (c - a / d * f) / (b - a / d * e)
    println(
        "%.10f %.10f".format(x, y)
    )
}
0