結果

問題 No.500 階乗電卓
ユーザー 141sksk141sksk
提出日時 2019-10-20 23:40:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 186 bytes
コンパイル時間 1,164 ms
コンパイル使用メモリ 10,444 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-09-15 14:48:55
合計ジャッジ時間 2,788 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 15 ms
7,792 KB
testcase_05 AC 15 ms
7,808 KB
testcase_06 WA -
testcase_07 AC 14 ms
7,792 KB
testcase_08 AC 15 ms
7,808 KB
testcase_09 AC 15 ms
7,864 KB
testcase_10 AC 15 ms
7,912 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 main():

    n = int(input())
    mylst = [1] * (n + 1)
    for i in range(1, n):
        mylst[i + 1] = (i + 1) * mylst[i]
    print(mylst[n])

if __name__ == "__main__":
    main()
0