結果
問題 | No.2835 Take and Flip |
ユーザー |
|
提出日時 | 2024-08-09 23:22:00 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
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 |
外部呼び出し有り |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
コンパイルメッセージ
; 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
ソースコード
#-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)