#P1705. 爱与愁过火
爱与愁过火
Description
At Pizza Hut, the God of Love and Sorrow was upset and wanted to rip Yue Luo Wu Ti off. He ordered dishes, each costing yuan. Yue Luo Wu Ti planned to spend only yuan, so he asked the God of Love and Sorrow to reselect dishes from these dishes.
Still trying to spend more money, he called you and asked you to write a program to tell him in how many ways he can choose dishes from the dishes such that the total cost exceeds yuan.
Input Format
The first line contains three integers , , .
The second line contains integers, where each is the cost of a dish, separated by spaces.
Output Format
Output a single integer, the total number of valid selections.
5 2 8
1 7 2 5 4
4
Hint
Constraints
For of the testdata, , , , .
Translated by ChatGPT 5
京公网安备 11011102002149号