結果
| 問題 | No.500 階乗電卓 |
| コンテスト | |
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2017-04-09 16:40:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 222 bytes |
| 記録 | |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 82,564 KB |
| 実行使用メモリ | 272,504 KB |
| 最終ジャッジ日時 | 2024-07-18 01:30:55 |
| 合計ジャッジ時間 | 6,575 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 19 |
ソースコード
import math
if __name__ == '__main__':
n = int(input())
fact = math.factorial(n)
display = fact % (10 ** 12)
x = math.floor(math.log10(fact))
print(display if x < 12 else '{0:012d}'.format(display))
neko_the_shadow