hyh0174 @ 2024-05-26 21:53:24
记忆化搜索很难编?使用以下代码,放在w函数前即可轻松解决问题
from functools import lru_cache
@lru_cache(maxsize=None)
by CarrotMeow @ 2024-05-26 22:04:27
好!
by Qian__Feng @ 2024-05-26 22:09:44
这不是很常见的嘛,(又不像C++手动记忆化),逃~
by xcoder @ 2024-05-27 21:19:47
@hyh0174 好!
by lmaz @ 2024-09-04 21:40:58
好py!