結果

問題 No.46 はじめのn歩
ユーザー moritarmoritar
提出日時 2021-03-21 23:33:25
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 319 ms / 5,000 ms
コード長 184 bytes
コンパイル時間 12,688 ms
コンパイル使用メモリ 429,180 KB
実行使用メモリ 56,956 KB
最終ジャッジ日時 2024-05-02 06:56:45
合計ジャッジ時間 16,839 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 310 ms
56,740 KB
testcase_01 AC 314 ms
56,928 KB
testcase_02 AC 314 ms
56,816 KB
testcase_03 AC 319 ms
56,700 KB
testcase_04 AC 317 ms
56,712 KB
testcase_05 AC 315 ms
56,812 KB
testcase_06 AC 318 ms
56,832 KB
testcase_07 AC 319 ms
56,832 KB
testcase_08 AC 313 ms
56,956 KB
testcase_09 AC 319 ms
56,716 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

import kotlin.math.ceil

fun main(args: Array<String>) {
    readLine()!!.split(" ").map {it.toInt()}.let {
        println(ceil((it[1].toDouble() / it[0].toDouble())).toInt())
    }
}
0