結果

問題 No.63 ポッキーゲーム
ユーザー lrf141lrf141
提出日時 2017-03-25 23:22:15
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 1,234 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 7,926 ms
コンパイル使用メモリ 236,276 KB
実行使用メモリ 62,780 KB
最終ジャッジ日時 2023-09-12 12:34:38
合計ジャッジ時間 32,260 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 976 ms
62,360 KB
testcase_01 AC 968 ms
62,568 KB
testcase_02 AC 973 ms
62,584 KB
testcase_03 AC 983 ms
62,264 KB
testcase_04 AC 977 ms
62,780 KB
testcase_05 AC 971 ms
62,316 KB
testcase_06 AC 976 ms
62,344 KB
testcase_07 AC 974 ms
62,396 KB
testcase_08 AC 978 ms
62,508 KB
testcase_09 AC 985 ms
62,320 KB
testcase_10 AC 984 ms
62,632 KB
testcase_11 AC 1,217 ms
62,308 KB
testcase_12 AC 987 ms
62,328 KB
testcase_13 AC 1,234 ms
62,432 KB
testcase_14 AC 990 ms
62,300 KB
testcase_15 AC 1,005 ms
62,676 KB
testcase_16 AC 997 ms
62,488 KB
testcase_17 AC 1,207 ms
62,532 KB
testcase_18 AC 995 ms
62,560 KB
testcase_19 AC 1,009 ms
62,456 KB
testcase_20 AC 988 ms
62,700 KB
testcase_21 AC 991 ms
62,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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