Problem B: 卡片游戏

Problem B: 卡片游戏

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 8  Solved: 7
[Status] [Submit] [Creator:]

Description

共有N张卡片,卡片上都有一个整数,游戏要求从N张卡片中选出K张卡片,使得卡片上数字之和为一个偶数。求满足游戏规则的方案数。

Input

第一行,两个整数,分别为N和K(1<=n<=20,k<n) 。
第二行,N个整数。

Output

一个整数,表示满足游戏规则的方案数。

Sample Input Copy

4 3
1 2 3 4

Sample Output Copy

2