You are viewing a single comment's thread. Return to all comments →
Haskell has an lcm function, so it's an easy solution
main = do _ <- getLine nums <- map read . words <$> getLine print $ foldl lcm 1 nums
Seems like cookies are disabled on this browser, please enable them to open this website
Jumping Bunnies
You are viewing a single comment's thread. Return to all comments →
Haskell has an lcm function, so it's an easy solution