結果
問題 | No.571 3人兄弟(その2) |
ユーザー |
![]() |
提出日時 | 2024-11-06 18:52:24 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 637 bytes |
コンパイル時間 | 301 ms |
コンパイル使用メモリ | 33,096 KB |
実行使用メモリ | 30,268 KB |
最終ジャッジ日時 | 2024-11-06 18:52:30 |
合計ジャッジ時間 | 1,103 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 NOV 2024 06:52:28 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.027
ソースコード
(defun main (&rest argv)(declare (ignorable argv))(let* ((ha (read))(wa (read))(hb (read))(wb (read))(hc (read))(wc (read))(h1 (list 'A ha wa))(h2 (list 'B hb wb))(h3 (list 'C hc wc))(h (list h1 h2 h3)))(dolist (item (mapcar #'car (sort h(lambda (x y)(if (= (second x) (second y))(< (third x) (third y))(> (second x) (second y)))))))(format t "~a~%" item))))(main)