| EPT Solving Cup 6.0 |
|---|
| Finished |

The first line contains two integers $$$n$$$ and $$$K$$$ ($$$1 \le n \le 200,000$$$, $$$1 \le K \le 10^9$$$) — the number of levels and the number of colors.
The second line contains $$$n$$$ integers $$$a_1, a_2, \dots, a_n$$$ ($$$1 \le a_i \le 200,000$$$) — the size of each level.
For each test case, output a single integer — the number of fundamentally different artifacts modulo $$$10^9 + 7$$$.
5 34 2 1 2 4
31320
5 34 2 1 4 2
62208
| Name |
|---|


