結果
問題 |
No.639 An Ordinary Sequence
|
ユーザー |
|
提出日時 | 2020-05-14 23:00:45 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 246 bytes |
コンパイル時間 | 172 ms |
コンパイル使用メモリ | 82,600 KB |
実行使用メモリ | 93,380 KB |
最終ジャッジ日時 | 2024-09-16 03:41:41 |
合計ジャッジ時間 | 4,763 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | TLE * 1 -- * 16 |
ソースコード
MOD = 10 ** 9 + 7 INF = 10 ** 15 import sys sys.setrecursionlimit(100000000) def dfs(x): if x == 0: return 1 return dfs(x//3) + dfs(x//5) def main(): N = int(input()) print(dfs(N)) if __name__ == '__main__': main()