結果

問題 No.502 階乗を計算するだけ
ユーザー eroge_mastereroge_master
提出日時 2024-04-23 15:53:45
言語 Common Lisp
(sbcl 2.3.8)
結果
RE  
実行時間 -
コード長 618 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 32,924 KB
実行使用メモリ 294,840 KB
最終ジャッジ日時 2024-04-23 15:53:52
合計ジャッジ時間 6,189 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
24,576 KB
testcase_01 AC 16 ms
24,320 KB
testcase_02 AC 15 ms
24,320 KB
testcase_03 AC 16 ms
24,576 KB
testcase_04 AC 16 ms
24,576 KB
testcase_05 AC 23 ms
24,448 KB
testcase_06 AC 16 ms
24,320 KB
testcase_07 AC 16 ms
24,576 KB
testcase_08 AC 15 ms
24,320 KB
testcase_09 AC 16 ms
24,320 KB
testcase_10 AC 16 ms
24,320 KB
testcase_11 AC 15 ms
24,448 KB
testcase_12 AC 17 ms
24,448 KB
testcase_13 AC 17 ms
24,320 KB
testcase_14 AC 16 ms
24,192 KB
testcase_15 AC 17 ms
24,320 KB
testcase_16 AC 17 ms
24,320 KB
testcase_17 AC 16 ms
24,448 KB
testcase_18 AC 17 ms
24,448 KB
testcase_19 AC 16 ms
24,320 KB
testcase_20 AC 17 ms
24,320 KB
testcase_21 AC 15 ms
24,320 KB
testcase_22 AC 44 ms
54,016 KB
testcase_23 AC 24 ms
32,512 KB
testcase_24 AC 38 ms
43,904 KB
testcase_25 AC 22 ms
26,624 KB
testcase_26 AC 27 ms
35,456 KB
testcase_27 AC 24 ms
30,976 KB
testcase_28 AC 25 ms
33,536 KB
testcase_29 AC 20 ms
28,544 KB
testcase_30 AC 43 ms
51,840 KB
testcase_31 AC 32 ms
37,504 KB
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 RE -
testcase_41 RE -
testcase_42 RE -
testcase_43 RE -
testcase_44 RE -
testcase_45 RE -
testcase_46 RE -
testcase_47 RE -
testcase_48 RE -
testcase_49 RE -
testcase_50 RE -
testcase_51 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 23 APR 2024 03:53:45 PM):

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

ソースコード

diff #

(unless (member :child-sbcl *features*)
  (quit
   :recklessly-p t
   :unix-status
   (process-exit-code
    (run-program *runtime-pathname*
                 `("--control-stack-size" "256MB"
                   "--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 fact (n)
  (if (= n 0)
      1
      (mod (* n (fact (- n 1))) 1000000007)))

(defun main ()
  (let ((n (read)))
    (format t "~d~%" (fact n))))

(main)
0