| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 6 | 6 | 5 | 100.000% |
Father Study loves math very much.
Given a sequence of integers $a_1,a_2,...,a_n,ドル Father Study wants to calculate another sequence of integers $t_1,t_2,...,t_n$ satisifing
Please help Father Study to calculate the answer --- the minimum value of $\prod_{i=1}^{n}{t_i}$. Because the answer is too large, please output the answer modulo 1000000007ドル$.
The first line contains a single integer $n$ (1ドル\le n \le 100000$).
The second line contains $n$ integers $a_1, a_2, ..., a_n$ (1ドル \le a_i \le 1000000$) separated by single spaces.
Output one integer -- the answer modulo 1000000007ドル$.
3 2 3 6
6