結果
問題 |
No.24 数当てゲーム
|
ユーザー |
|
提出日時 | 2025-03-22 13:40:33 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 10 ms / 5,000 ms |
コード長 | 432 bytes |
コンパイル時間 | 1,776 ms |
コンパイル使用メモリ | 33,756 KB |
実行使用メモリ | 25,664 KB |
最終ジャッジ日時 | 2025-03-22 13:40:36 |
合計ジャッジ時間 | 2,209 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 22 MAR 2025 01:40:33 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.058
ソースコード
(defparameter N (parse-integer (read-line))) (defparameter kouho '(0 1 2 3 4 5 6 7 8 9 )) (defparameter x '()) (defparameter yn "Y" ) (loop for line = (read-line nil nil) while line do (setq line (read-from-string (concatenate 'string "(" line ")" ))) (setq yn (nth 4 line )) (if (eq yn 'YES) (setq kouho (intersection kouho line)) (setq kouho (set-difference kouho line))) ) (format 't "~A~%" (car kouho))