結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2019-02-11 19:25:22 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 282 bytes |
コンパイル時間 | 209 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-07-19 04:21:07 |
合計ジャッジ時間 | 1,680 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 6 |
ソースコード
(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)