結果
問題 | No.1373 Directed Operations |
ユーザー | linuxmetel |
提出日時 | 2021-02-05 21:56:22 |
言語 | Common Lisp (sbcl 2.3.8) |
結果 |
WA
|
実行時間 | - |
コード長 | 656 bytes |
コンパイル時間 | 1,418 ms |
コンパイル使用メモリ | 29,244 KB |
実行使用メモリ | 31,656 KB |
最終ジャッジ日時 | 2023-09-15 08:07:04 |
合計ジャッジ時間 | 5,524 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 8 ms
22,904 KB |
testcase_01 | AC | 8 ms
22,932 KB |
testcase_02 | AC | 202 ms
28,612 KB |
testcase_03 | AC | 49 ms
26,684 KB |
testcase_04 | AC | 90 ms
26,676 KB |
testcase_05 | AC | 8 ms
22,912 KB |
testcase_06 | AC | 270 ms
29,984 KB |
testcase_07 | AC | 14 ms
25,984 KB |
testcase_08 | AC | 36 ms
23,548 KB |
testcase_09 | AC | 122 ms
26,680 KB |
testcase_10 | AC | 104 ms
26,464 KB |
testcase_11 | AC | 32 ms
23,724 KB |
testcase_12 | AC | 103 ms
26,464 KB |
testcase_13 | AC | 19 ms
25,316 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 15 SEP 2023 08:06:57 AM): ; processing (DEFVAR N ...) ; processing (DEFPARAMETER A ...) ; processing (DEFVAR F ...) ; processing (LOOP FOR ...) ; processing (IF F ...) ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.199
ソースコード
(defvar n (read)) (defparameter a (sort (apply #'vector -100000000 (loop repeat (1- n) collect (read))) #'<)) (defvar f nil) (loop for i from 1 to (1- n) until f do (unless (<= (aref a i) i) (setq f t))) (if f (progn (princ "NO") (fresh-line)) (progn (princ "YES") (fresh-line) (loop for i from 1 to (1- n) do (princ (1+ (- i (aref a i)))) (fresh-line)))) ;(princ a)