結果

問題 No.500 階乗電卓
ユーザー tookunn_1213tookunn_1213
提出日時 2017-04-08 16:16:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 10,460 KB
実行使用メモリ 8,700 KB
最終ジャッジ日時 2023-09-07 08:36:53
合計ジャッジ時間 1,802 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,648 KB
testcase_01 AC 20 ms
8,516 KB
testcase_02 AC 20 ms
8,580 KB
testcase_03 AC 21 ms
8,552 KB
testcase_04 AC 20 ms
8,528 KB
testcase_05 AC 20 ms
8,700 KB
testcase_06 AC 20 ms
8,512 KB
testcase_07 AC 20 ms
8,496 KB
testcase_08 AC 20 ms
8,648 KB
testcase_09 AC 21 ms
8,644 KB
testcase_10 AC 20 ms
8,648 KB
testcase_11 AC 20 ms
8,604 KB
testcase_12 AC 20 ms
8,588 KB
testcase_13 AC 20 ms
8,580 KB
testcase_14 AC 20 ms
8,576 KB
testcase_15 AC 20 ms
8,484 KB
testcase_16 AC 20 ms
8,616 KB
testcase_17 AC 20 ms
8,516 KB
testcase_18 AC 20 ms
8,556 KB
testcase_19 AC 20 ms
8,520 KB
testcase_20 AC 21 ms
8,608 KB
testcase_21 AC 20 ms
8,688 KB
testcase_22 AC 20 ms
8,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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