結果
| 問題 | No.1131 Deviation Score |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-06 23:49:25 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 86 ms / 2,000 ms |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 393 ms |
| コンパイル使用メモリ | 29,952 KB |
| 実行使用メモリ | 23,040 KB |
| 最終ジャッジ日時 | 2026-05-07 06:15:51 |
| 合計ジャッジ時間 | 3,845 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 21 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 MAY 2026 06:15:46 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.031
ソースコード
(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)
Common Lisp