結果
| 問題 | No.500 階乗電卓 |
| コンテスト | |
| ユーザー |
はどゆう
|
| 提出日時 | 2017-04-07 23:11:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 134 bytes |
| コンパイル時間 | 109 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 25,108 KB |
| 最終ジャッジ日時 | 2024-07-16 02:58:12 |
| 合計ジャッジ時間 | 6,528 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 19 |
ソースコード
n = int(input())
ans = 1
while n>1:
ans = ans*n
n -= 1
s = str(ans)
n = len(s)
if n>13:
print(s[-12:])
else:
print(s)
はどゆう