結果

問題 No.500 階乗電卓
ユーザー yansi819
提出日時 2024-05-18 11:29:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 651 ms
コンパイル使用メモリ 82,188 KB
実行使用メモリ 53,248 KB
最終ジャッジ日時 2024-12-20 16:16:18
合計ジャッジ時間 2,349 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N >= 50:
    print("000000000000") 
else:
    s = 1
    for i in range(1, N + 1):
        s = s * i % 1000000000000
    print(f"{s:012}" if N > 14 else s)
0