結果

問題 No.858 わり算
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-08 18:33:20
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 300 bytes
コンパイル時間 15,026 ms
コンパイル使用メモリ 415,204 KB
実行使用メモリ 55,016 KB
最終ジャッジ日時 2023-09-29 21:34:31
合計ジャッジ時間 18,608 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigDecimal
import java.math.RoundingMode

fun main() {
    val d = readLine()!!
    val (a, b) = d.split(' ').map(String::toInt)
    val v = BigDecimal(a.toBigInteger(), 100).divide(BigDecimal(b.toBigInteger(), 100), RoundingMode.FLOOR)
    val z = v.toPlainString()
    println(z)
}
0