时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
Special Judge, 64bit IO Format: %lld
题目描述
As the saying goes, "if you are hesitant, you will lose the game; if you are decisive, you will die in vain."
Calabash doesn't want to lose the game, neither to die in vain. But, this is not important, because he doesn't have enough money to buy the game.
Fortunately, Roundgod, the banker of a casino, gives him a chance to fulfill his dream. Roundgod promises to buy him the game if he could win in one round of Blackjack. The Blackjack involves a deck of playing cards, each has some points on it. It is carried out as follows: Roundgod gives a number
and tells Calabash the number of points on each of the cards. Then, Calabash begins to draw cards, according to the following procedure: 1. the deck of all cards is shuffled uniformly at random;
2. Calabash could repeatedly draw a card from the deck (he immediately knows the number of the points on the card after drawing the card), or declare to stop drawing at any moment;
3. if, after drawing any card, the total number of points on cards Calabash drawn exceeds a limit

, he loses immediately;
4. otherwise, after Calabash stops drawing, he wins if the total number of points on cards he drew is greater than a.
Calabash wants to know the probability to win if he plays optimally so that he can obtain his favorite game. Please help him to calculate the probability.
输入描述:
There are two lines in the input. The first line consists of three integers n, a, b
, denoting the number of cards in the deck, the number given by Roundgod, and the limit to the total number of points, respectively.
The second line contains n integers
, denoting the numbers of points of these cards. It is guaranteed that
.
输出描述:
Output the answer within an absolute error of no more than
.