結果
| 問題 | No.2836 Comment Out |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-09 23:25:53 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 753 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 33,812 KB |
| 実行使用メモリ | 29,568 KB |
| 最終ジャッジ日時 | 2026-04-03 20:41:45 |
| 合計ジャッジ時間 | 5,056 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 RE * 1 |
| other | WA * 51 RE * 1 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 03 APR 2026 08:41:40 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.004
ソースコード
#-swank
(unless (member :child-sbcl *features*)
(quit
:recklessly-p t
:unix-status
(process-exit-code
(run-program *runtime-pathname*
`("--control-stack-size" "1024MB"
"--noinform" "--disable-ldb" "--lose-on-corruption" "--end-runtime-options"
"--eval" "(push :child-sbcl *features*)"
"--script" ,(namestring *load-pathname*))
:output t :error t :input t))))
(defun solve-game ()
(let* ((n (read))
(a (sort (loop for i from 1 to n collect (read)) #'>)))
;; aの最小値が0または1ならが0または1ならYes,そうでなければNoを出力
(if (or (zerop (first a)) (zerop (first (rest a)))) "Yes" "No")))
(solve-game)