马凯旋

Results 3 comments of 马凯旋

> 第i年的牛的数量可以分为两部分: 一、“老牛”,即原来就有的牛,dp[i-1] 二、“新牛”,即今年新出生的牛。牛龄三岁及以上才能生新牛,所以新牛数量为dp[i-3],即三年前就存在的牛。 所以转移方程:dp[i] = dp[i-1]+dp[i-3] good job

can you give me a correct impleamentation?

same error /usr/local/lib/python3.10/dist-packages/ipykernel/ipkernel.py:283: DeprecationWarning: `should_run_async` will not call `transform_cell` automatically in the future. Please pass the result to `transformed_cell` argument and any exception that happen during thetransform in `preprocessing_exc_tuple` in...