結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-27 21:34:56 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 9 ms / 5,000 ms |
| コード長 | 434 bytes |
| コンパイル時間 | 206 ms |
| コンパイル使用メモリ | 28,920 KB |
| 実行使用メモリ | 19,840 KB |
| 最終ジャッジ日時 | 2025-03-27 21:34:57 |
| 合計ジャッジ時間 | 845 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 27 MAR 2025 09:34:55 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.105
ソースコード
(defvar W)
(defvar H)
(defvar C)
(defvar temp)
(setq temp (read-from-string (concatenate 'string "(" (read-line) ")")))
(setq W (nth 0 temp))
(setq H (nth 1 temp))
(setq C (nth 2 temp))
(setq C (if (eq C 'B) #\B #\W))
(defvar sentou)
(loop for i from 1 to H do
(setq sentou C )
(loop for j from 1 to W do
(format 't "~c" C)
(setq C (if (eq C #\B ) #\W #\B ))
)
(setq C (if (eq sentou #\B ) #\W #\B ))
(format 't "~%")
)