Problem C
Intergalactic Team
The Intergalactic Competitive Programming Contest (ICPC) is coming up, and it’s time to choose a team that will represent our planet in this esteemed competition. The ICPC president has announced the team size for this year’s competition to all planets that want to compete. The Earth ICPC committee needs to form a team that consists of exactly this number of members.
To maximize compatibility and teamwork between team members,
a set of people can form a team if for any pair of members
Earth has
Input
The first line of input contains three integers
The competitors are numbered
Output
Output a single integer, the number of ways for the Earth ICPC committee to choose a team for the upcoming ICPC.
Sample Input 1 | Sample Output 1 |
---|---|
7 7 2 1 2 2 3 3 1 4 5 5 4 6 7 7 6 |
2 |