結果

問題 No.46 はじめのn歩
ユーザー バカらっくバカらっく
提出日時 2019-09-09 18:24:43
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 291 ms / 5,000 ms
コード長 197 bytes
コンパイル時間 13,979 ms
コンパイル使用メモリ 419,016 KB
実行使用メモリ 52,868 KB
最終ジャッジ日時 2023-09-10 21:57:53
合計ジャッジ時間 18,428 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 287 ms
52,564 KB
testcase_01 AC 289 ms
52,868 KB
testcase_02 AC 290 ms
52,572 KB
testcase_03 AC 291 ms
52,672 KB
testcase_04 AC 285 ms
52,600 KB
testcase_05 AC 286 ms
52,652 KB
testcase_06 AC 285 ms
52,476 KB
testcase_07 AC 284 ms
52,864 KB
testcase_08 AC 283 ms
52,440 KB
testcase_09 AC 283 ms
52,432 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^

ソースコード

diff #

fun main(arr:Array<String>) {
    val (oneStep, total) = readLine()!!.split(" ").map { it.toLong() }
    val ans = total / oneStep + (if (total % oneStep == 0.toLong()) 0 else 1)
    print(ans)
}

0