結果
問題 |
No.2836 Comment Out
|
ユーザー |
|
提出日時 | 2024-08-09 23:25:53 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 753 bytes |
コンパイル時間 | 303 ms |
コンパイル使用メモリ | 35,532 KB |
実行使用メモリ | 39,392 KB |
最終ジャッジ日時 | 2024-08-09 23:26:03 |
合計ジャッジ時間 | 9,168 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 RE * 1 |
other | WA * 51 RE * 1 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 09 AUG 2024 11:25:53 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.027
ソースコード
#-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)