結果
問題 | No.267 トランプソート |
ユーザー |
![]() |
提出日時 | 2024-11-16 03:16:41 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 11 ms / 1,000 ms |
コード長 | 581 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 37,280 KB |
実行使用メモリ | 29,988 KB |
最終ジャッジ日時 | 2024-11-16 03:16:47 |
合計ジャッジ時間 | 1,415 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 16 NOV 2024 03:16:45 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.026
ソースコード
(defun main (&rest argv)(declare (ignorable argv))(let* ((n (read))(m (make-array n :element-type 'string))(x "DCHS")(y "A23456789TJQK")(flag nil))(dotimes (i n)(setf (aref m i) (string (read))))(dotimes (i 4)(dotimes (j 13)(dotimes (k n)(when (and (char= (char x i) (char (aref m k) 0))(char= (char y j) (char (aref m k) 1)))(when flag (format t " "))(setq flag t)(format t "~a" (aref m k))))))(terpri)))(main)