結果

問題 No.436 ccw
ユーザー まんしmaNNshi
提出日時 2025-04-13 20:59:28
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 13 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 28,792 KB
実行使用メモリ 27,672 KB
最終ジャッジ日時 2025-04-13 20:59:30
合計ジャッジ時間 2,140 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 13 APR 2025 08:59:28 PM):

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

ソースコード

diff #

(defvar c)
(defvar w)

(setq c 0)
(setq w 1)
(loop for char = (read-char nil nil) do
	(if (eq char #\c) (incf c) (return))
)
(loop for char = (read-char nil nil) do
	(if (eq char #\w) (incf w) (return))
)

;(print c)
;(print w)
(format t "~d~%" (min (- c 1) w))
0