結果

問題 No.21 平均の差
ユーザー まんしmaNNshi
提出日時 2025-03-22 09:15:41
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 9 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 34,360 KB
実行使用メモリ 19,584 KB
最終ジャッジ日時 2025-03-22 09:15:42
合計ジャッジ時間 1,252 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 22 MAR 2025 09:15:41 AM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.006

ソースコード

diff #

(read-line)
(read-line)

(defparameter x '())
(loop for line = (read-line nil nil) while line
    do (setq x (append x (list (parse-integer line)))))

(defvar big)
(defvar small)

(setq big (eval (append '(max) x)))
(setq small (eval (append '(min) x)))

(format 't "~d~%" (- big small))
0