Turn the pokers

 1 Sec 64 MB |  显示标签
00
通过提交

题目描述

During summer vacation,Alice stay at home for a long time, with nothing to do. She went out and bought m pokers, tending to play poker. But she hated the traditional gameplay. She wants to change. She puts these pokers face down, she decided to flip poker n times, and each time she can flip Xi pokers. She wanted to know how many the results does she get. Can you help her solve this problem?

输入格式

The input consists of multiple test cases.
Each test case begins with a line containing two non-negative integers n and m(0<n,m<=100000).
The next line contains n integers Xi(0<=Xi<=m).

输出格式

Output the required answer modulo 1000000009 for each test case, one per line.

样例输入 #1

3 4
3 2 3
3 3
3 2 3

样例输出 #1

8
3


 上传者
coach
 修改时间
2017-10-02 20:34