結果
問題 |
No.369 足し間違い
|
ユーザー |
|
提出日時 | 2025-03-24 20:29:22 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 30,948 KB |
実行使用メモリ | 26,180 KB |
最終ジャッジ日時 | 2025-03-24 20:29:23 |
合計ジャッジ時間 | 1,196 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 24 MAR 2025 08:29:22 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.009
ソースコード
(defvar N) (defvar A) (defvar v) (setq N (parse-integer (read-line))) (setq A (read-from-string (concatenate 'string "(" (read-line) ")"))) (setq v (parse-integer (read-line))) ;(print N) ;(print A) ;(print v) (defparameter ans 0) (loop for x in A do ;(print (type-of x)) (setq ans (+ ans x)) ) (format 't "~d~%" (- ans v))