結果

問題 No.63 ポッキーゲーム
ユーザー lrf141lrf141
提出日時 2017-03-25 23:19:54
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 1,188 ms / 5,000 ms
コード長 281 bytes
コンパイル時間 7,534 ms
コンパイル使用メモリ 233,312 KB
実行使用メモリ 62,580 KB
最終ジャッジ日時 2023-09-12 12:33:48
合計ジャッジ時間 31,346 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 920 ms
62,252 KB
testcase_01 AC 930 ms
62,296 KB
testcase_02 AC 921 ms
62,140 KB
testcase_03 AC 928 ms
62,508 KB
testcase_04 AC 926 ms
62,292 KB
testcase_05 AC 943 ms
62,580 KB
testcase_06 AC 949 ms
62,280 KB
testcase_07 AC 938 ms
62,384 KB
testcase_08 AC 937 ms
62,532 KB
testcase_09 AC 941 ms
62,396 KB
testcase_10 AC 937 ms
62,272 KB
testcase_11 AC 1,188 ms
62,232 KB
testcase_12 AC 949 ms
62,200 KB
testcase_13 AC 1,178 ms
62,180 KB
testcase_14 AC 942 ms
62,124 KB
testcase_15 AC 938 ms
62,220 KB
testcase_16 AC 934 ms
62,236 KB
testcase_17 AC 1,159 ms
62,264 KB
testcase_18 AC 936 ms
62,536 KB
testcase_19 AC 962 ms
62,340 KB
testcase_20 AC 940 ms
62,124 KB
testcase_21 AC 954 ms
62,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner
object no63{
    def main(args:Array[String]):Unit = {
        val scan = new Scanner(System.in)
        var l,k = scan.nextInt()
        var res = 0
        while(2*k < l){
            l -= 2*k
            res += 1
        }
        println(k*res)
    }
}
0