結果
| 問題 | No.476 正しくない平均 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-07 22:54:24 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 17 ms |
| コンパイル使用メモリ | 31,356 KB |
| 実行使用メモリ | 19,584 KB |
| 最終ジャッジ日時 | 2026-07-08 13:33:56 |
| 合計ジャッジ時間 | 1,962 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 08 JUL 2026 01:33:53 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.006
ソースコード
(defvar n)
(defvar a)
(defvar x)
(defvar temp)
(setq temp (read-from-string (concatenate 'string "(" (read-line) ")")))
(setq n (nth 0 temp))
(setq a (nth 1 temp))
(setq x (read-from-string (concatenate 'string "(" (read-line) ")")))
(defvar s)
(setq s 0)
(loop for i in x do
(setq s (+ s i))
)
(format t "~a~%" (if (= (* a n) s) "YES" "NO"))