結果

問題 No.1131 Deviation Score
ユーザー Common Lisp
提出日時 2024-11-06 23:49:25
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 172 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 27,904 KB
実行使用メモリ 22,784 KB
最終ジャッジ日時 2024-11-06 23:49:30
合計ジャッジ時間 3,413 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 NOV 2024 11:49:26 PM):

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

ソースコード

diff #

(defun main (&rest argv)
  (declare (ignorable argv))
  (let* ((n (read))
         (a (make-array n :element-type 'integer)))
    (dotimes (i n) (setf (aref a i) (read)))
    (let ((s (reduce #'+ a)))
      (dotimes (i n)
        (princ (floor (+ (* 100 n) (* n (aref a i)) (- s)) (* 2 n)))
        (terpri)))))

(main)
0