結果

問題 No.63 ポッキーゲーム
コンテスト
ユーザー まんしmaNNshi
提出日時 2025-03-21 23:30:11
言語 Common Lisp
(sbcl 2.6.3)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
AC  
実行時間 6 ms / 5,000 ms
コード長 272 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 256 ms
コンパイル使用メモリ 37,616 KB
実行使用メモリ 27,664 KB
最終ジャッジ日時 2026-07-07 18:57:50
合計ジャッジ時間 2,148 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 JUL 2026 06:57:47 PM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.100

ソースコード

diff #
raw source code

(defvar L)
(defvar K)
(defvar temp)
(setq temp (read-from-string (concatenate 'string "(" (read-line) ")" )))
(setq L (nth 0 temp ))
(setq K (nth 1 temp ))
(defvar ans)
(setq ans (floor L (* K 2)))
(if (eq (* ans K 2) L) (setq ans (decf ans)))
(format 't "~d~%" (* ans K))
0