You
are given an integer m as
a product of integers a1,?a2,?... an .
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 modulo1000000007 (109?+?7).
The first line contains positive integer n (1?≤?n?≤?500). The second line contains space-separated integers a1,?a2,?...,?an (1?≤?ai?≤?109).
In a single line print a single number k — the number of distinct decompositions of number m into n ordered multipliers modulo 1000000007(109?+?7).
1
15
1
分析:用map存储每个素数的个数接着就是组合公式c(n+k-1,k-1),因为是乘法所以相当于往盒子里面放小球盒子可以为空。因此多出n个盒子
60 }
Codeforces Round #232 (Div. 2) C,布布扣,bubuko.com
Codeforces Round #232 (Div. 2) C
原文:http://www.cnblogs.com/acvc/p/3571360.html