結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2019-02-11 20:00:29 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 22 ms / 5,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 30 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-07-19 05:12:43 |
合計ジャッジ時間 | 1,351 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
(define (poky L K)(let* ((n (quotient L 2)))(cond [(= L 1) 0][(odd? L) (* (quotient n K) K)][(= (remainder n K) 0) (* (- (quotient n K) 1) K)][else (* (quotient n K) K)])))(define (main args)(let* ((L (read))(K (read)))(print (poky L K))) 0)