結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2025-03-20 16:38:01 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 10 ms / 5,000 ms |
コード長 | 589 bytes |
コンパイル時間 | 347 ms |
コンパイル使用メモリ | 29,312 KB |
実行使用メモリ | 25,764 KB |
最終ジャッジ日時 | 2025-03-20 16:38:03 |
合計ジャッジ時間 | 1,580 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 20 MAR 2025 04:38:01 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.007
ソースコード
(defvar A)(defvar B)(defvar temp)(setq temp (read-line))(setq temp (read-from-string (concatenate 'string "(" temp ")" )) )(setq A (nth 0 temp))(setq B (nth 1 temp))(loop for i from A to B do(if (= (mod i 3) 0)(format 't "~d~%" i)(progn(setq temp (princ-to-string i))(loop for j from 0 to (- (length temp) 1) do(if (eq (aref temp j ) #\3)(progn(format 't "~d~%" i)(return)))))))