結果

問題 No.63 ポッキーゲーム
ユーザー バカらっくバカらっく
提出日時 2019-09-23 01:59:17
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 325 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 14,955 ms
コンパイル使用メモリ 432,372 KB
実行使用メモリ 54,372 KB
最終ジャッジ日時 2023-10-19 07:51:16
合計ジャッジ時間 23,486 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 317 ms
54,360 KB
testcase_01 AC 316 ms
54,364 KB
testcase_02 AC 324 ms
54,352 KB
testcase_03 AC 324 ms
54,348 KB
testcase_04 AC 325 ms
54,368 KB
testcase_05 AC 320 ms
54,368 KB
testcase_06 AC 320 ms
54,344 KB
testcase_07 AC 319 ms
54,356 KB
testcase_08 AC 315 ms
54,352 KB
testcase_09 AC 316 ms
54,368 KB
testcase_10 AC 317 ms
54,356 KB
testcase_11 AC 313 ms
54,364 KB
testcase_12 AC 320 ms
54,364 KB
testcase_13 AC 320 ms
54,364 KB
testcase_14 AC 323 ms
54,372 KB
testcase_15 AC 325 ms
54,368 KB
testcase_16 AC 325 ms
54,368 KB
testcase_17 AC 325 ms
54,364 KB
testcase_18 AC 316 ms
54,356 KB
testcase_19 AC 319 ms
54,368 KB
testcase_20 AC 316 ms
54,360 KB
testcase_21 AC 310 ms
54,372 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'arr' is never used
fun main(arr:Array<String>) {
         ^

ソースコード

diff #

fun main(arr:Array<String>) {
    val (l,k) = readLine()!!.split(" ").map { it.toInt() }
    var ans = (l/2)/k
    if (l % (k*2) == 0) {
        ans-=1
    }
    println(ans*k)
}
0