結果
問題 |
No.639 An Ordinary Sequence
|
ユーザー |
|
提出日時 | 2022-06-06 18:29:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 136 bytes |
コンパイル時間 | 239 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-21 04:42:46 |
合計ジャッジ時間 | 1,413 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 |
ソースコード
from functools import lru_cache n=int(input()) @lru_cache def f(x): if x==0: return 1 return f(x//3)+f(x//5) print(f(n))