結果

問題 No.63 ポッキーゲーム
ユーザー nohopennohopen
提出日時 2019-02-11 16:43:55
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 237 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 13,864 KB
最終ジャッジ日時 2023-09-25 16:23:40
合計ジャッジ時間 2,053 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 18 ms
11,652 KB
testcase_04 AC 18 ms
11,860 KB
testcase_05 WA -
testcase_06 AC 17 ms
11,684 KB
testcase_07 AC 19 ms
11,912 KB
testcase_08 WA -
testcase_09 AC 18 ms
11,716 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 17 ms
11,740 KB
testcase_13 AC 18 ms
11,772 KB
testcase_14 AC 18 ms
11,660 KB
testcase_15 AC 17 ms
11,908 KB
testcase_16 AC 17 ms
11,772 KB
testcase_17 AC 18 ms
13,864 KB
testcase_18 AC 17 ms
11,700 KB
testcase_19 AC 17 ms
11,712 KB
testcase_20 AC 17 ms
11,884 KB
testcase_21 AC 17 ms
11,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (poky L K)
  (let ((n (quotient L 2)))
    (if (= (modulo n K) 0)
        (* (- (truncate (/ n K)) 1) K)
        (* (truncate (/ n K)) K))))

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