結果

問題 No.46 はじめのn歩
ユーザー rutilicusrutilicus
提出日時 2020-08-30 20:49:22
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 311 ms / 5,000 ms
コード長 242 bytes
コンパイル時間 10,641 ms
コンパイル使用メモリ 434,536 KB
実行使用メモリ 56,952 KB
最終ジャッジ日時 2024-04-27 13:14:56
合計ジャッジ時間 14,626 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 302 ms
56,876 KB
testcase_01 AC 299 ms
56,904 KB
testcase_02 AC 299 ms
56,800 KB
testcase_03 AC 294 ms
56,808 KB
testcase_04 AC 302 ms
56,864 KB
testcase_05 AC 302 ms
56,896 KB
testcase_06 AC 299 ms
56,928 KB
testcase_07 AC 311 ms
56,944 KB
testcase_08 AC 297 ms
56,952 KB
testcase_09 AC 295 ms
56,824 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:13: warning: 'appendln(Int): kotlin.text.StringBuilder /* = java.lang.StringBuilder */' is deprecated. Use appendLine instead. Note that the new method always appends the line feed character '\n' regardless of the system line separator.
    builder.appendln((b + (a - 1)) / a)
            ^

ソースコード

diff #

fun main() {
    val builder = StringBuilder()

    val (a, b) = readInputLine().split(" ").map { it.toInt() }

    builder.appendln((b + (a - 1)) / a)

    print(builder.toString())
}

fun readInputLine(): String {
    return readLine()!!
}
0