結果

問題 No.63 ポッキーゲーム
ユーザー neko_the_shadowneko_the_shadow
提出日時 2017-01-15 19:11:36
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 24 ms / 5,000 ms
コード長 205 bytes
コンパイル時間 44 ms
コンパイル使用メモリ 5,380 KB
実行使用メモリ 12,824 KB
最終ジャッジ日時 2023-08-25 19:20:48
合計ジャッジ時間 1,770 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
12,652 KB
testcase_01 AC 24 ms
12,772 KB
testcase_02 AC 24 ms
12,732 KB
testcase_03 AC 24 ms
12,672 KB
testcase_04 AC 24 ms
12,648 KB
testcase_05 AC 24 ms
12,656 KB
testcase_06 AC 24 ms
12,576 KB
testcase_07 AC 24 ms
12,652 KB
testcase_08 AC 24 ms
12,572 KB
testcase_09 AC 24 ms
12,636 KB
testcase_10 AC 24 ms
12,576 KB
testcase_11 AC 24 ms
12,756 KB
testcase_12 AC 23 ms
12,572 KB
testcase_13 AC 24 ms
12,768 KB
testcase_14 AC 24 ms
12,752 KB
testcase_15 AC 23 ms
12,652 KB
testcase_16 AC 23 ms
12,572 KB
testcase_17 AC 23 ms
12,584 KB
testcase_18 AC 24 ms
12,548 KB
testcase_19 AC 24 ms
12,620 KB
testcase_20 AC 24 ms
12,580 KB
testcase_21 AC 24 ms
12,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(print
    (let* ((l (read)) (k (read)))
        (receive
            (div mod)
            (div-and-mod l (* k 2))
            (if (zero? mod)
                (* (- div 1) k)
                (* div k)))))
0