結果
| 問題 | No.26 シャッフルゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-03-23 13:09:09 | 
| 言語 | Common Lisp (sbcl 2.5.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 10 ms / 5,000 ms | 
| コード長 | 581 bytes | 
| コンパイル時間 | 378 ms | 
| コンパイル使用メモリ | 32,572 KB | 
| 実行使用メモリ | 25,640 KB | 
| 最終ジャッジ日時 | 2025-03-23 13:09:12 | 
| 合計ジャッジ時間 | 1,487 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 | 
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 23 MAR 2025 01:09:09 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.074
ソースコード
(defparameter N (parse-integer (read-line))) (defparameter M (parse-integer (read-line))) (defvar cup) (setq cup (make-array 4 :initial-element nil)) (setf (aref cup N) T) (defvar p) (defvar q) (defvar temp) (loop for line = (read-line nil nil) while line do ;(print line) (setq p (digit-char-p (aref line 0))) (setq q (digit-char-p (aref line 2))) (setq temp (aref cup p)) (setf (aref cup p) (aref cup q)) (setf (aref cup q) temp) ;(format 't "<~a>~%" cup ) ) (if (aref cup 1) (format 't "1~%")) (if (aref cup 2) (format 't "2~%")) (if (aref cup 3) (format 't "3~%"))
