You are viewing a single comment's thread. Return to all comments →
Haskell:
main :: IO () main = f <$> readN <*> readN >>= print f :: Integer -> Integer -> Integer f = ((`mod` k) .) . gcd k :: Integer k = 1000000007 readN :: IO Integer readN = getLine >> product . map read . words <$> getLine
Seems like cookies are disabled on this browser, please enable them to open this website
Huge GCD
You are viewing a single comment's thread. Return to all comments →
Haskell: