結果

問題 No.500 階乗電卓
ユーザー tookunn_1213tookunn_1213
提出日時 2017-04-08 16:12:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 164 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 8,776 KB
最終ジャッジ日時 2023-09-24 23:31:25
合計ジャッジ時間 1,653 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,612 KB
testcase_01 AC 20 ms
8,568 KB
testcase_02 AC 20 ms
8,696 KB
testcase_03 AC 20 ms
8,572 KB
testcase_04 AC 19 ms
8,572 KB
testcase_05 AC 20 ms
8,676 KB
testcase_06 AC 19 ms
8,744 KB
testcase_07 AC 19 ms
8,728 KB
testcase_08 AC 20 ms
8,688 KB
testcase_09 AC 19 ms
8,592 KB
testcase_10 AC 20 ms
8,720 KB
testcase_11 AC 20 ms
8,600 KB
testcase_12 AC 19 ms
8,748 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 19 ms
8,688 KB
testcase_16 AC 19 ms
8,568 KB
testcase_17 AC 20 ms
8,732 KB
testcase_18 AC 19 ms
8,616 KB
testcase_19 AC 20 ms
8,616 KB
testcase_20 AC 19 ms
8,680 KB
testcase_21 AC 19 ms
8,740 KB
testcase_22 AC 19 ms
8,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from functools import reduce
N = int(input())
two,five = 0,0
if N >= 50:
	print('0'*12)
else:
	print(reduce(lambda x,y : x * y,[i for i in range(N,0,-1)])%(10**12))
0