結果

問題 No.63 ポッキーゲーム
ユーザー nohopennohopen
提出日時 2019-02-11 19:25:22
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 282 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 5,284 KB
実行使用メモリ 13,888 KB
最終ジャッジ日時 2023-09-26 09:22:08
合計ジャッジ時間 1,964 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
11,684 KB
testcase_01 AC 19 ms
11,848 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 18 ms
11,664 KB
testcase_05 WA -
testcase_06 AC 18 ms
11,744 KB
testcase_07 AC 18 ms
11,672 KB
testcase_08 WA -
testcase_09 AC 18 ms
11,748 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 18 ms
11,776 KB
testcase_13 AC 18 ms
11,872 KB
testcase_14 AC 18 ms
11,768 KB
testcase_15 AC 18 ms
11,880 KB
testcase_16 AC 18 ms
13,888 KB
testcase_17 AC 17 ms
11,772 KB
testcase_18 AC 18 ms
11,892 KB
testcase_19 AC 18 ms
11,688 KB
testcase_20 AC 18 ms
11,916 KB
testcase_21 AC 18 ms
11,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (poky L K)
  (let ((n (quotient L 2)))
    (cond [(<= (truncate (/ n K)) 1) 0]
          [(= (modulo n K) 0) (* (- (truncate (/ n K)) 1) K)]
          [else (* (truncate (/ n K)) K)])))

(define (main args)
  (let* ((L (read))
         (K (read)))
    (print (poky L K))) 0)
0