結果

問題 No.500 階乗電卓
ユーザー mnrmnr
提出日時 2020-02-29 07:14:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 147 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-04-21 21:26:50
合計ジャッジ時間 1,724 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 26 ms
10,496 KB
testcase_05 AC 26 ms
10,624 KB
testcase_06 WA -
testcase_07 AC 25 ms
10,496 KB
testcase_08 AC 27 ms
10,752 KB
testcase_09 AC 26 ms
10,624 KB
testcase_10 AC 26 ms
10,624 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def factorial(n):
    if n == 1:
        return 1
    else:
        return factorial(n-1) * n
        
N = int(input())
Nf = factorial(N)
print(Nf)
0