結果

問題 No.1131 Deviation Score
ユーザー Common Lisp
提出日時 2024-11-06 23:49:25
言語 Common Lisp
(sbcl 2.6.7)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
AC  
実行時間 85 ms / 2,000 ms
+ 434µs
コード長 319 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,024 ms
コンパイル使用メモリ 27,776 KB
実行使用メモリ 20,352 KB
最終ジャッジ日時 2026-09-19 21:09:10
合計ジャッジ時間 3,842 ms
ジャッジサーバーID
(参考情報)
judge4_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 19 SEP 2026 09:09:05 PM):

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

ソースコード

diff #
raw source code

(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