結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 327 ms
54,492 KB
testcase_01 AC 320 ms
54,492 KB
testcase_02 WA -
testcase_03 AC 320 ms
54,472 KB
testcase_04 AC 321 ms
54,484 KB
testcase_05 WA -
testcase_06 AC 320 ms
54,472 KB
testcase_07 AC 320 ms
54,476 KB
testcase_08 WA -
testcase_09 AC 317 ms
54,484 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 324 ms
54,488 KB
testcase_13 AC 316 ms
54,496 KB
testcase_14 AC 327 ms
54,480 KB
testcase_15 AC 317 ms
54,472 KB
testcase_16 AC 322 ms
54,484 KB
testcase_17 AC 317 ms
54,492 KB
testcase_18 AC 316 ms
54,488 KB
testcase_19 AC 317 ms
54,492 KB
testcase_20 AC 318 ms
54,472 KB
testcase_21 AC 323 ms
54,492 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 = Math.max(0, ans  - 1)
    }
    println(ans*k)
}
0