题号:NC15839
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
Alice has an array

, she want to calculate the other array

where
%3Di%20%5C%5C%200%5Cle%20i_j%20%3C%20n%2Cj%3D1..m%20%7D%7D%20a_%7Bi_1%7D%5Ccdot%20a_%7Bi_2%7D%5Ccdot%20...%5Ccdot%20a_%7Bi_m%7D)
Can you help her? For simplicity, please output
输入描述:
In the first line there are two integer n, m,(1 <= n <= 100000, 1 <= m <= 1000000000).
In the second line there are n integers
.
输出描述:
Output a single integer, which is%5Ccdot%20b_i%20%5Cbmod%201000000007)
示例2
输入
复制
10 3
83254494 79256570 664815211 929105503 348307749 129917295 141270181 116122929 432020021 461745049