結果

問題 No.63 ポッキーゲーム
ユーザー MOD9cXWdOsRxvPyMOD9cXWdOsRxvPy
提出日時 2022-10-30 18:12:45
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 190 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 14,656 KB
最終ジャッジ日時 2023-09-21 16:11:05
合計ジャッジ時間 2,033 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
12,792 KB
testcase_01 AC 23 ms
12,780 KB
testcase_02 AC 23 ms
12,652 KB
testcase_03 AC 26 ms
12,756 KB
testcase_04 AC 23 ms
12,608 KB
testcase_05 AC 23 ms
12,760 KB
testcase_06 AC 23 ms
12,692 KB
testcase_07 AC 23 ms
12,588 KB
testcase_08 AC 22 ms
12,792 KB
testcase_09 AC 23 ms
14,656 KB
testcase_10 AC 22 ms
12,596 KB
testcase_11 AC 22 ms
12,732 KB
testcase_12 AC 23 ms
12,580 KB
testcase_13 AC 23 ms
12,776 KB
testcase_14 AC 23 ms
12,600 KB
testcase_15 AC 22 ms
12,580 KB
testcase_16 AC 24 ms
12,756 KB
testcase_17 AC 23 ms
12,784 KB
testcase_18 AC 25 ms
12,656 KB
testcase_19 AC 23 ms
12,612 KB
testcase_20 AC 22 ms
12,752 KB
testcase_21 AC 23 ms
12,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env gosh

(define (main _)
  (let* ([l (read)][k (read)])
    (let-values ([(q r) (div-and-mod (/ l 2) k)])
      (display (* (if (zero? r) (- q 1) q) k))
    ))
  (newline)
  0)
0