Little Shino and Number of Divisors

4.1

32 votes
Mathematics, Medium, Number Theory
Problem

You are given an integer array A of size x denoting the prime powers of an integer N. Ai denotes the power of ith prime in the prime factorization of N. To make it more clear, A1 will denote the power of 2 in the prime factorization of N, A2 will denote the power of 3 in the prime factorization of N and so on.

Consider a number P equals to the product of all the divisors of N. You have to find the number of divisors of P. Output it modulo 109+7.

enter image description here

Input Format:
The first line contains an integer, x (1x106) denoting the size of array A. Next line contains x space separated integers, denoting the array A (0Ai109).

Output Format:
Print one integer, denoting the number of divisors of P, modulo 109+7.

Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

N=213151=30

P=12356101530=810000

Number of factors of P is 125

Editor Image

?