結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-29 19:16:33 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 589 bytes |
| コンパイル時間 | 346 ms |
| コンパイル使用メモリ | 30,688 KB |
| 実行使用メモリ | 27,672 KB |
| 最終ジャッジ日時 | 2025-03-29 19:16:35 |
| 合計ジャッジ時間 | 1,396 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 5 |
| other | WA * 15 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 29 MAR 2025 07:16:33 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.093
ソースコード
(defvar state)
(setq state 1 )
;state
;zero 1
;f5 2
;sev 3
;s5
(defvar ans)
(setq ans "NG~%")
(loop for char = (read-char nil nil) do
(if (eq char nil) (return))
(if (not (eq char #\Newline)) (progn
(values)
))
(case state
(1
;(print "zero")
(if (eql char #\5) (setq state 2))
)
(2 ;(print "f5")
(if (eql char #\7) (setq state 'sev) (setq state 3))
)
(3 ;(print "sev")
(if (eql char #\5) (progn (setq ans "OK~%") (return)) (setq state 1))
)
)
)
(format 't ans)