結果
| 問題 | No.500 階乗電卓 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-10 14:59:05 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 2,000 ms |
| + 663µs | |
| コード長 | 284 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 79,000 KB |
| 最終ジャッジ日時 | 2026-07-30 07:33:20 |
| 合計ジャッジ時間 | 3,264 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
n = int(input())
ans = []
now = 1
check = "0"*12
for i in range(1000):
now *= max(1,i)
ans.append(now)
if len(str(now)) > 12 and str(now)[::-1][:12][::-1] == check:
break
#print(len(ans))
if n >= 50:
print(check)
else:
print(str(ans[n])[::-1][:12][::-1])