結果
| 問題 |
No.881 sin(x)/xの和
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-11 18:39:54 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 299 bytes |
| コンパイル時間 | 383 ms |
| コンパイル使用メモリ | 33,008 KB |
| 実行使用メモリ | 35,864 KB |
| 最終ジャッジ日時 | 2024-11-11 18:39:56 |
| 合計ジャッジ時間 | 1,918 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 23 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 11 NOV 2024 06:39:54 PM): ; file: /home/judge/data/code/Main.lisp ; in: DEFUN MAIN ; (INCF RES A PI) ; ; caught ERROR: ; during macroexpansion of (INCF RES A ...). Use *BREAK-ON-SIGNALS* to intercept. ; ; Error while parsing arguments to DEFMACRO INCF: ; too many elements in ; (RES A PI) ; to satisfy lambda list ; (PLACE &OPTIONAL (DELTA)): ; between 1 and 2 expected, but got 3 ; (A (FLOAT (READ) 0.0d0)) ; ; caught STYLE-WARNING: ; The variable A is defined but never used. ; ; compilation unit finished ; caught 1 ERROR condition ; caught 1 STYLE-WARNING condition ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.034
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((query (read))
(res 0d0))
(dotimes (_ query)
(let* ((x (read))
(a (float (read) 0d0)))
(declare (ignore x))
(incf res a pi)))
(format t "~f~%" (* res 3.14159265358979323846))))
(main)
Common Lisp