Codeforces Round 232 (Div. 1)
A
On Number of Decompositions into Multipliers
Codeforces
未评级
原题
←B →
翻译中…

You are given an integer $*m*$ as a product of integers $*a*_{1}, *a*_{2}, ... *a*_{*n*}$ image. Your task is to find the number of distinct decompositions of number $*m*$ into the product of $*n*$ ordered positive integers.

翻译中…

Decomposition into $*n*$ products, given in the input, must also be considered in the answer. As the answer can be very large, print it modulo $1000000007$ $(10^{9} + 7)$.

翻译中…

Input

翻译中…

The first line contains positive integer $*n*$ ($1 ≤ *n* ≤ 500$). The second line contains space-separated integers $*a*_{1}, *a*_{2}, ..., *a*_{*n*}$ ($1 ≤ *a*_{*i*} ≤ 10^{9}$).

翻译中…

Output

翻译中…

In a single line print a single number $*k*$ — the number of distinct decompositions of number $*m*$ into $*n*$ ordered multipliers modulo $1000000007$ $(10^{9} + 7)$.

翻译中…

Note

翻译中…

In the second sample, the get a decomposition of number 2, you need any one number out of three to equal 2, and the rest to equal 1.

翻译中…

In the third sample, the possible ways of decomposing into ordered multipliers are [7,5], [5,7], [1,35], [35,1].

翻译中…

A decomposition of positive integer $*m*$ into $*n*$ ordered multipliers is a cortege of positive integers $*b* = {*b*_{1}, *b*_{2}, ... *b*_{*n*}}$ such that image. Two decompositions $*b*$ and $*c*$ are considered different, if there exists index $*i*$ such that $*b*_{*i*} ≠ *c*_{*i*}$.

翻译中…

样例

Input #1
1
15
Output #1
1
InputCopy OutputCopy
Input #2
3
1 1 2
Output #2
3
InputCopy OutputCopy
Input #3
2
5 7
Output #3
4
InputCopy OutputCopy
题目信息
题号
396A
时间限制
1 s
内存限制
256 MB
标签
组合数学
数学
数论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。