費氏數列, 真的要計算的話, 應該是O(n)吧, 速度不至於那麼慢. F(n) = F(n-1) + ... 限制來考慮. 不能用long, 那就用long array, 自己模擬大數加法, 也不至於慢到跑不動.
www.programmer-club.com.tw