結果

問題 No.63 ポッキーゲーム
ユーザー rutilicusrutilicus
提出日時 2020-08-30 21:37:22
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 304 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 11,978 ms
コンパイル使用メモリ 427,984 KB
実行使用メモリ 57,032 KB
最終ジャッジ日時 2024-04-27 13:22:12
合計ジャッジ時間 17,654 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 303 ms
56,984 KB
testcase_01 AC 295 ms
56,900 KB
testcase_02 AC 291 ms
56,920 KB
testcase_03 AC 293 ms
56,820 KB
testcase_04 AC 293 ms
56,828 KB
testcase_05 AC 292 ms
56,812 KB
testcase_06 AC 295 ms
56,908 KB
testcase_07 AC 294 ms
56,944 KB
testcase_08 AC 304 ms
56,960 KB
testcase_09 AC 294 ms
56,896 KB
testcase_10 AC 291 ms
56,944 KB
testcase_11 AC 289 ms
56,856 KB
testcase_12 AC 295 ms
56,992 KB
testcase_13 AC 291 ms
56,988 KB
testcase_14 AC 293 ms
56,808 KB
testcase_15 AC 287 ms
56,916 KB
testcase_16 AC 292 ms
56,912 KB
testcase_17 AC 289 ms
56,816 KB
testcase_18 AC 285 ms
56,996 KB
testcase_19 AC 301 ms
56,920 KB
testcase_20 AC 291 ms
57,032 KB
testcase_21 AC 295 ms
56,812 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(k * ((l - 1) / (k * 2)))
            ^

ソースコード

diff #

fun main() {
    val builder = StringBuilder()

    val (l, k) = readInputLine().split(" ").map { it.toInt() }

    builder.appendln(k * ((l - 1) / (k * 2)))

    print(builder.toString())
}

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