Problem G: 集训题单

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:18 Solved:3

Description

Sample Input Copy

3  2
10  20  30
1  20

Sample Output Copy

3

HINT

【样例1说明】

可以选{10,20},{10,30},{20,30} 三种选法


【样例输入2】

4  2
5  10  15  20
1  12

【样例输出2】

5

【样例2说明】

可以选{5,15},{5,20},{10,15},{10,20},{15,20} 共5种选法