結果

問題 No.1175 Simultaneous Equations
ユーザー yudedako
提出日時 2020-08-22 09:57:57
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 356 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 11,282 ms
コンパイル使用メモリ 446,076 KB
実行使用メモリ 53,080 KB
最終ジャッジ日時 2024-10-15 06:49:34
合計ジャッジ時間 16,833 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

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