結果

問題 No.500 階乗電卓
ユーザー akitsugu777
提出日時 2018-11-15 17:30:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 195 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 30,164 KB
最終ジャッジ日時 2024-12-24 14:01:28
合計ジャッジ時間 31,296 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 TLE * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())

x = math.factorial(n)

if n <= 14:
    print(x)
else:
    l = []
    x = list(str(x))
    for i in range(1, 13):
        l.append(x[-i])
    print(''.join(l[::-1]))
0