結果
| 問題 |
No.716 距離
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-18 01:47:53 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 20 ms / 2,000 ms |
| コード長 | 293 bytes |
| コンパイル時間 | 338 ms |
| コンパイル使用メモリ | 39,252 KB |
| 実行使用メモリ | 30,016 KB |
| 最終ジャッジ日時 | 2024-10-18 01:47:57 |
| 合計ジャッジ時間 | 2,309 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 40 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 18 OCT 2024 01:47:53 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.005
ソースコード
(defun main ()
(let* ((n (read))
(xs (loop repeat n collect (read)))
(ma (- (car (last xs)) (car xs)))
(mi (loop for (a1 a2) on xs
while a2
minimize (- a2 a1))))
(princ mi)
(terpri)
(princ ma)
(terpri)))
(main)
Common Lisp