#t276. 拼木棒
拼木棒
Background
Special for beginners, ^_^
Form an Equilateral Triangle from Sticks
Problem Description
There are sticks. Now choose of them to form an equilateral triangle. In how many ways can this be done?
The answer should be taken modulo .
Input Format
The first line contains one integer .
The next lines each contain one integer; the -th integer is the length of the -th stick.
Output Format
One line containing one integer: the answer.
Sample Input
4
1
1
2
2
Sample Output
1
Constraints
1s, 1024KiB for each test case.
- For of the data, .
- For of the data, and .