結果
| 問題 | No.1944 ∞ |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-02 17:02:40 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| + 22µs | |
| コード長 | 451 bytes |
| 記録 | |
| コンパイル時間 | 1,045 ms |
| コンパイル使用メモリ | 37,360 KB |
| 実行使用メモリ | 31,232 KB |
| 最終ジャッジ日時 | 2026-07-12 10:33:47 |
| 合計ジャッジ時間 | 3,045 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 37 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 12 JUL 2026 10:33:44 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.044
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(x (read))
(y (read))
(r (loop repeat n collect (read)))
(m (reduce #'min r))
(s (reduce #'+ r))
(d (+ (* x x) (* y y)))
(z (- (+ s s) m)))
(format t "~a~%" (if (or (and (= 1 n) (/= d (* s s)))
(< (* z z) d))
"No"
"Yes"))))
(main)
Common Lisp