結果
| 問題 | No.1944 ∞ |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-02 17:02:40 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
AC
|
| 実行時間 | 116 ms / 2,000 ms |
| コード長 | 451 bytes |
| 記録 | |
| コンパイル時間 | 1,338 ms |
| コンパイル使用メモリ | 30,672 KB |
| 実行使用メモリ | 22,912 KB |
| 最終ジャッジ日時 | 2025-06-20 02:18:36 |
| 合計ジャッジ時間 | 3,139 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 37 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 20 JUN 2025 02:18:28 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.027
ソースコード
(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