結果

問題 No.207 世界のなんとか
ユーザー Common LispCommon Lisp
提出日時 2024-10-08 15:53:02
言語 Common Lisp
(sbcl 2.3.8)
結果
AC  
実行時間 8 ms / 5,000 ms
コード長 451 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 33,000 KB
実行使用メモリ 21,888 KB
最終ジャッジ日時 2024-10-08 15:53:03
合計ジャッジ時間 1,400 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
21,632 KB
testcase_01 AC 7 ms
21,888 KB
testcase_02 AC 8 ms
21,760 KB
testcase_03 AC 7 ms
21,888 KB
testcase_04 AC 7 ms
21,760 KB
testcase_05 AC 7 ms
21,888 KB
testcase_06 AC 7 ms
21,888 KB
testcase_07 AC 7 ms
21,760 KB
testcase_08 AC 7 ms
21,888 KB
testcase_09 AC 6 ms
21,760 KB
testcase_10 AC 7 ms
21,760 KB
testcase_11 AC 7 ms
21,760 KB
testcase_12 AC 7 ms
21,760 KB
testcase_13 AC 7 ms
21,760 KB
testcase_14 AC 6 ms
21,760 KB
testcase_15 AC 7 ms
21,760 KB
testcase_16 AC 7 ms
21,760 KB
testcase_17 AC 6 ms
21,888 KB
testcase_18 AC 7 ms
21,888 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 08 OCT 2024 03:53:02 PM):

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

ソースコード

diff #

; for ループで繰り返し処理する
(defun main ()
  (let* ((a (read))
         (b (read)))
    (loop for i from a to b
                   ; 3 の倍数のとき
          when (or (zerop (mod i 3))
                   ; i を文字列に直して
                   ; 文字として '3' が含まれているとき
                   (find #\3 (write-to-string i)))
          do (progn
              (princ i)
              (terpri)))))
(main)
0