結果
| 問題 |
No.369 足し間違い
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-08 20:28:08 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 2,000 ms |
| コード長 | 302 bytes |
| コンパイル時間 | 202 ms |
| コンパイル使用メモリ | 37,012 KB |
| 実行使用メモリ | 30,116 KB |
| 最終ジャッジ日時 | 2024-10-08 20:28:10 |
| 合計ジャッジ時間 | 1,023 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 08 OCT 2024 08:28:08 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.005
ソースコード
; reduce #'+ => sum
; loop repeat n collect (read) => n 個の数を 1 つのリストとして読み込む
(defun main ()
(let* ((n (read))
(real-answer (reduce #'+ (loop repeat n collect (read))))
(yuki-answer (read)))
(princ (- real-answer yuki-answer))
(terpri)))
(main)
Common Lisp