You are viewing a single comment's thread. Return to all comments →
One-liner in Haskell (no focus on performance though):
solve :: [Integer] -> [Integer] -> Integer solve ns ms = flip mod (10^9 + 7) $ gcd (product ns) (product ms)
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 →
One-liner in Haskell (no focus on performance though):