結果

問題 No.500 階乗電卓
ユーザー autumn-eelautumn-eel
提出日時 2017-04-07 22:43:59
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 90 bytes
コンパイル時間 557 ms
コンパイル使用メモリ 6,680 KB
実行使用メモリ 6,208 KB
最終ジャッジ日時 2023-09-23 02:15:23
合計ジャッジ時間 1,774 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 11 ms
6,156 KB
testcase_05 AC 11 ms
5,956 KB
testcase_06 AC 12 ms
6,156 KB
testcase_07 AC 11 ms
6,204 KB
testcase_08 AC 12 ms
5,968 KB
testcase_09 AC 12 ms
5,968 KB
testcase_10 AC 11 ms
5,996 KB
testcase_11 AC 11 ms
6,036 KB
testcase_12 AC 11 ms
6,040 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 12 ms
6,208 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=input()
a=1
MOD=1000000000000
for i in range(1,n+1):
	a=(a*i)%MOD
	if a==0:break
print a
0