#P3799. 小 Y 拼木棒
小 Y 拼木棒
Description
There are wooden sticks. Choose of them, and you want to be able to form an equilateral triangle. How many such selections are there.
The answer is taken modulo .
Input Format
The first line contains an integer .
From the second line, there are lines. Each line contains integer. The -th integer represents the length of the -th stick.
Output Format
Output a single integer representing the answer.
4
1
1
2
2
1
Hint
Constraints
- For of the testdata, it is guaranteed that .
- For of the testdata, it is guaranteed that , .
About the title: Due to some unforeseen circumstances, the name has been changed. We sincerely apologize.
Translated by ChatGPT 5
京公网安备 11011102002149号