結果
| 問題 |
No.593 4進FizzBuzz
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-07 17:00:00 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 338 bytes |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 26,752 KB |
| 実行使用メモリ | 144,644 KB |
| 最終ジャッジ日時 | 2024-11-07 17:00:07 |
| 合計ジャッジ時間 | 4,590 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 TLE * 1 -- * 18 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 NOV 2024 05:00:02 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.005
ソースコード
(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)
Common Lisp