LCM Of Array Small

Computer Mathematics Hard 2 views
Back to Questions

Problem Description

Given n

Input Format

n then n integers.

Output Format

LCM or -1 if overflow.

Sample Test Case

Input:
3 2 3 5
Output:
30

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next