結果

問題 No.500 階乗電卓
コンテスト
ユーザー bellangeldindon
提出日時 2019-05-10 15:36:20
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 166 bytes
記録
コンパイル時間 137 ms
コンパイル使用メモリ 77,760 KB
最終ジャッジ日時 2025-12-04 01:43:35
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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