結果
| 問題 |
No.516 赤と青の風船
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-10 00:36:08 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 2,000 ms |
| コード長 | 391 bytes |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 26,752 KB |
| 実行使用メモリ | 21,632 KB |
| 最終ジャッジ日時 | 2024-10-10 00:36:10 |
| 合計ジャッジ時間 | 1,368 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 10 OCT 2024 12:36:08 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.005
ソースコード
; ループで読み込み続けてカウントする
; (RED の個数) < 2 なら BLUE をそれ以外なら RED を出力する
(defun main (&rest argv)
(declare (ignorable argv))
(write-line (if (< (loop repeat 3
for s = (read)
count (eql s 'RED))
2)
"BLUE"
"RED")))
(main)
Common Lisp