結果

問題 No.858 わり算
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-08 18:34:24
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 259 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 13,842 ms
コンパイル使用メモリ 417,668 KB
実行使用メモリ 53,256 KB
最終ジャッジ日時 2023-09-29 21:34:49
合計ジャッジ時間 15,875 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 250 ms
53,084 KB
testcase_01 AC 243 ms
52,952 KB
testcase_02 AC 246 ms
52,856 KB
testcase_03 AC 247 ms
52,864 KB
testcase_04 AC 248 ms
53,156 KB
testcase_05 AC 246 ms
53,256 KB
testcase_06 AC 245 ms
52,992 KB
testcase_07 AC 259 ms
53,104 KB
testcase_08 AC 257 ms
52,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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