You are viewing a single comment's thread. Return to all comments →
haskell
it looks ugly,but it does work..
fibs = 0 : 1 : zipWith (+) fibs (tail fibs) main = getContents >>= putStrLn.unlines.(map (show.(`mod` (10^8 + 7)).last.(flip take fibs).(+1).read)).tail.lines
Seems like cookies are disabled on this browser, please enable them to open this website
Fibonacci
You are viewing a single comment's thread. Return to all comments →
haskell
it looks ugly,but it does work..