- 踩方格
qwq
- 2025-3-19 13:46:27 @
//记North[m]为第m步向北走的方法数
//上一步走北,下一步3个方向
//else 2个方向
//North[n]就是走了n-1步时再向北一步
//North[n-1]=f[n-2]
//3*North[i-1]+(f[n-1]-North[n-1])*2
//3*North[i-1]+(f[n-1]-f[n-2])*2
//3*f[n-2]-2*f[n-2]+2*f[n-1]
//2*f[n-1]+f[n-2]
2 comments
-
h_h LV 5 MOD @ 2025-3-20 15:41:24
狠狠点赞,这才是正经题解
-
2025-3-19 22:15:56@
难道真的是天才?
- 1
Information
- ID
- 682
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 3
- Tags
- # Submissions
- 66
- Accepted
- 34
- Uploaded By