結果

問題 No.500 階乗電卓
ユーザー bellangeldindon
提出日時 2019-05-10 15:36:20
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2024-07-02 00:59:46
合計ジャッジ時間 1,189 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
ans = ''
if N >= 50: ans = '000000000000'
else:
	fact = 1
	for i in range(1, N+1):
		fact = (fact * i) % 1000000000000
	ans = str(fact)
print ans
0