Find Product
Practice
3.9 (2080 votes)
Easy
Problem
28% Success 501569 Attempts 10 Points 1s Time Limit 256MB Memory 1024 KB Max Code
You have been given an array A of size N consisting of positive integers. You need to find and print the product of all the number in this array Modulo \(10^9+7\).
Input Format:
The first line contains a single integer N denoting the size of the array. The next line contains N space separated integers denoting the elements of the array
Output Format:
Print a single integer denoting the product of all the elements of the array Modulo \(10^9+7\).
Constraints:
\( 1 \le N \le 10^3 \)
\( 1 \le A[i] \le 10^3 \)
Submissions
Please login to view your submissions
Similar Problems
Points:10
2539 votes
Tags:
Easy
Points:10
2431 votes
Tags:
Easy
3.Zoos
Points:10
1156 votes
Tags:
Basic ProgrammingInput/Output
Editorial