結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー まんしmaNNshi
提出日時 2025-03-28 21:50:10
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 368 bytes
コンパイル時間 1,764 ms
コンパイル使用メモリ 30,820 KB
実行使用メモリ 27,540 KB
最終ジャッジ日時 2025-03-28 21:50:14
合計ジャッジ時間 3,279 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 28 MAR 2025 09:50:10 PM):

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

ソースコード

diff #

(defparameter ans 0)
(defparameter temp 0)
(loop for char = (read-char nil nil) do
    (if (eq char nil) (return))
    (if (not (eq char #\Newline)) 
        (if (eq char #\x ) (progn
            (setq ans (max ans temp))
            (setq temp 0)
        )   
            (setq temp (+ temp 1)) 
        )   
    )   
)
(setq ans (max ans temp))
(format t "~d~%" ans)
0