結果

問題 No.63 ポッキーゲーム
ユーザー バカらっくバカらっく
提出日時 2019-09-23 01:56:29
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 179 bytes
コンパイル時間 15,135 ms
コンパイル使用メモリ 441,448 KB
実行使用メモリ 54,476 KB
最終ジャッジ日時 2023-10-19 07:50:11
合計ジャッジ時間 22,567 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 328 ms
54,436 KB
testcase_04 AC 328 ms
54,428 KB
testcase_05 WA -
testcase_06 AC 334 ms
54,440 KB
testcase_07 AC 325 ms
54,428 KB
testcase_08 WA -
testcase_09 AC 327 ms
54,436 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 341 ms
54,448 KB
testcase_13 AC 342 ms
54,448 KB
testcase_14 AC 342 ms
54,448 KB
testcase_15 AC 342 ms
54,444 KB
testcase_16 AC 333 ms
54,444 KB
testcase_17 AC 338 ms
54,448 KB
testcase_18 AC 334 ms
54,448 KB
testcase_19 AC 328 ms
54,448 KB
testcase_20 AC 331 ms
54,444 KB
testcase_21 AC 331 ms
54,448 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/2)%k == 0) {
        ans -= 1
    }
    println(ans*k)
}
0