結果
| 問題 |
No.639 An Ordinary Sequence
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-06 18:28:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 149 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 24,376 KB |
| 最終ジャッジ日時 | 2024-09-21 04:42:44 |
| 合計ジャッジ時間 | 4,500 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | TLE * 1 -- * 16 |
ソースコード
from functools import lru_cache
n=int(input())
lru_cache(maxsize=None)
def f(x):
if x==0:
return 1
return f(x//3)+f(x//5)
print(f(n))