結果

問題 No.500 階乗電卓
ユーザー Cyberdog-しばいぬ-Cyberdog-しばいぬ-
提出日時 2019-02-10 02:27:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 202 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2023-09-17 05:16:22
合計ジャッジ時間 1,464 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 14 ms
7,784 KB
testcase_05 AC 14 ms
7,860 KB
testcase_06 AC 13 ms
8,060 KB
testcase_07 AC 14 ms
8,016 KB
testcase_08 AC 14 ms
7,796 KB
testcase_09 AC 13 ms
7,796 KB
testcase_10 AC 14 ms
7,864 KB
testcase_11 AC 13 ms
7,864 KB
testcase_12 AC 13 ms
7,872 KB
testcase_13 AC 13 ms
7,860 KB
testcase_14 AC 13 ms
7,872 KB
testcase_15 AC 13 ms
7,896 KB
testcase_16 AC 15 ms
7,836 KB
testcase_17 AC 16 ms
7,860 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
a = 1
if N > 1000:
    print("000000000000")
else:
    for i in range(1, N+1):
        a *= i
if int(math.log10(int(a))+1) <= 12:
    print(a)
else:
    print(str(a)[-12:])
0