Problem E: 魔法符号
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:78
Solved:38
Description
魔法师给你 n 张数字卡牌,让你在每张卡牌前面贴上 + 或 - 号, 然后把它们连成一个算式。请问:有多少种贴法,能让算式的结果正好等于 target? (每张卡牌必须用上,且只能决定它前面是 + 还是 -)

Input
第一行:n 和 target,
第二行:n 个正整数。
Output
一个整数:贴法总数。
Sample Input Copy
3 2
1 2 1
Sample Output Copy
2
HINT
2=<n<=1000。