結果
問題 | No.152 貯金箱の消失 |
ユーザー |
![]() |
提出日時 | 2024-11-15 02:51:21 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 24 ms / 5,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 1,333 ms |
コンパイル使用メモリ | 36,768 KB |
実行使用メモリ | 30,116 KB |
最終ジャッジ日時 | 2024-11-15 02:51:24 |
合計ジャッジ時間 | 1,376 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 15 NOV 2024 02:51:21 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.022
ソースコード
(defun main (&rest argv)(declare (ignorable argv))(let* ((L (read)))(labels ((rec (x y z)(if (<= (* 8 x (+ x y)) z)(+ (mod (+ x y) 2) (rec (+ x y) x z) (rec (+ x y) y z))0)))(format t "~d~%" (rec 2 1 L)))))(main)