Problem C: 团队竞赛

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:35 Solved:8

Description

Sample Input Copy

4  20
30  20  10  40

Sample Output Copy

2

HINT

符合的有2个团队,分别是:{10,20,30} , {20,30,40} ,共有2种选法。