摘要: f(n)=f(n-1)+f(n-2) class Solution { public: int climbStairs(int n) { int s1(1);int s2(2); int s3; if(n==1)return s1; if(n==2)return s2; for(int i=3;i< 阅读全文
posted @ 2022-02-28 20:17 fengmao31 阅读(28) 评论(0) 推荐(0) 编辑