結果

問題 No.88 次はどっちだ
ユーザー まんしmaNNshi
提出日時 2025-04-11 21:35:20
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 10 ms / 5,000 ms
コード長 376 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 35,240 KB
実行使用メモリ 25,764 KB
最終ジャッジ日時 2025-04-11 21:35:22
合計ジャッジ時間 967 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 11 APR 2025 09:35:20 PM):

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

ソースコード

diff #

(defvar name)
(setq name (read-line))
(defvar sente)
(defvar gote)
(setq sente name)
(setq gote (if (string= sente "oda" ) "yukiko" "oda"))


(defvar cnt)
(setq cnt 0)
(loop for char = (read-char nil nil) do
 	(if (eq char nil) (return))
	(if (or (eq char #\b) (eq char #\w)) (incf cnt))
)
(format t "~a~%" (if (oddp cnt) gote sente))
;(print sente)
;(print gote)
;(print cnt)
0