結果

問題 No.1175 Simultaneous Equations
コンテスト
ユーザー yudedako
提出日時 2020-08-22 09:57:57
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 215 ms / 2,000 ms
コード長 359 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 8,528 ms
コンパイル使用メモリ 462,144 KB
実行使用メモリ 59,356 KB
最終ジャッジ日時 2026-05-03 11:51:56
合計ジャッジ時間 12,748 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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