摘要: class Solution { public: int Fibonacci(int n) { double c1 = (1.0 + sqrt(5)) / 2, c2 = (1.0 - sqrt(5)) / 2; return (int)((pow(c1, n) - pow(c2, n)) / sq 阅读全文
posted @ 2022-01-03 09:19 兮何其 阅读(27) 评论(0) 推荐(0)