結果

問題 No.593 4進FizzBuzz
コンテスト
ユーザー Common Lisp
提出日時 2024-11-07 17:00:00
言語 Common Lisp
(sbcl 2.6.3)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
TLE  
実行時間 -
コード長 338 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 328 ms
コンパイル使用メモリ 29,056 KB
実行使用メモリ 145,524 KB
最終ジャッジ日時 2026-05-08 00:40:37
合計ジャッジ時間 4,817 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 12 TLE * 1 -- * 18
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 08 MAY 2026 12:40:30 AM):

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

ソースコード

diff #
raw source code

(defun main (&rest argv)
  (declare (ignorable argv))
  (let* ((s (read-line))
         (n (parse-integer s :radix 4)))
    (cond
     ((zerop (mod n 15))
       (format t "FizzBuzz~%"))
     ((zerop (mod n 3))
       (format t "Fizz~%"))
     ((zerop (mod n 5))
       (format t "Buzz~%"))
     (t
       (format t "~a~%" s)))))

(main)
0