結果
| 問題 | No.571 3人兄弟(その2) |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-06 18:52:24 |
| 言語 | Common Lisp (sbcl 2.6.7) |
| 結果 |
AC
不安定
|
| 実行時間 | 6 ms / 2,000 ms |
| + 872µs | |
| コード長 | 637 bytes |
| 記録 | |
| コンパイル時間 | 882 ms |
| コンパイル使用メモリ | 33,216 KB |
| 実行使用メモリ | 28,540 KB |
| 最終ジャッジ日時 | 2026-09-19 19:34:57 |
| 合計ジャッジ時間 | 2,339 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 19 SEP 2026 07:34:54 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.080
ソースコード
(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)
Common Lisp