結果

問題 No.500 階乗電卓
ユーザー Fumiya OgyuFumiya Ogyu
提出日時 2017-08-25 14:04:32
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 165 bytes
コンパイル時間 508 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-23 15:17:50
合計ジャッジ時間 1,228 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = input()
mod = 1000000000000
ans = 1
for i in range(1, n + 1):
    ans *= i
if ans > 12:
    tmp = ans % mod
    print "{0:012d}".format(tmp)
else:
    print ans
0