結果
問題 |
No.500 階乗電卓
|
ユーザー |
![]() |
提出日時 | 2017-08-02 17:41:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 354 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 24,848 KB |
最終ジャッジ日時 | 2024-10-11 12:58:18 |
合計ジャッジ時間 | 6,672 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 19 |
ソースコード
#import math def main(): N = int(input()) total = 1 for x in range(1, N + 1): total *= x #if int(math.log10(total) + 1) > 12: if total >= 10 ** 11: a = list(str(total)) for x in range(len(a) - 12, len(a)): print(a[x], end = "") else: print(total) if __name__ == "__main__": main()