摘要: Problem Set 7.1 Problem 7.1.1 设\(f_i\)表示将\(i\)变成\(1\)所需要的最小次数,有\(f_1=0\) 状态转移方程见代码 def min_operations(n): if n == 1: return 0 dp = [0] * (n + 1) dp[1] 阅读全文
posted @ 2025-05-15 15:56 最爱丁珰 阅读(21) 评论(0) 推荐(0)