You are viewing a single comment's thread. Return to all comments →
haskell
main = do getLine la <- getLine getLine lb <- getLine let xs = map read (words la) :: [Integer] ys = map read (words lb) :: [Integer] print $ gcd (product xs) (product ys) `mod` 1000000007
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