結果

問題 No.2835 Take and Flip
ユーザー Lisp_CoderLisp_Coder
提出日時 2024-08-09 23:22:00
言語 Common Lisp
(sbcl 2.3.8)
結果
AC  
実行時間 195 ms / 2,000 ms
コード長 633 bytes
コンパイル時間 562 ms
コンパイル使用メモリ 27,520 KB
実行使用メモリ 27,648 KB
最終ジャッジ日時 2024-08-09 23:22:05
合計ジャッジ時間 4,736 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
24,448 KB
testcase_01 AC 15 ms
24,320 KB
testcase_02 AC 14 ms
24,320 KB
testcase_03 AC 195 ms
27,648 KB
testcase_04 AC 179 ms
27,648 KB
testcase_05 AC 16 ms
24,192 KB
testcase_06 AC 157 ms
27,392 KB
testcase_07 AC 157 ms
27,264 KB
testcase_08 AC 146 ms
27,136 KB
testcase_09 AC 164 ms
27,648 KB
testcase_10 AC 166 ms
27,520 KB
testcase_11 AC 185 ms
27,648 KB
testcase_12 AC 165 ms
27,392 KB
testcase_13 AC 171 ms
27,648 KB
testcase_14 AC 77 ms
25,728 KB
testcase_15 AC 16 ms
24,320 KB
testcase_16 AC 114 ms
26,240 KB
testcase_17 AC 25 ms
24,704 KB
testcase_18 AC 134 ms
26,752 KB
testcase_19 AC 161 ms
27,520 KB
testcase_20 AC 68 ms
25,600 KB
testcase_21 AC 176 ms
27,392 KB
testcase_22 AC 116 ms
26,368 KB
testcase_23 AC 61 ms
25,472 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 09 AUG 2024 11:22:00 PM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.005

ソースコード

diff #

#-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 (loop for i from 1 to n collect (read)))
         (sum (reduce #'+ a)))
    (format t "~d~%" sum)))

(solve-game)
0