Problem Statement:
You're in a supermarket and want to buy N items but you have only S dollars.
Input Format:
first two numbers N (the number of items) and S (The amount of dollars you have) followed by N integers indicate the price of each item
N is a positive integers less than or equal to 1,000,000
0 < S < 1,000,000,001
All prices are less than 1,000,001
Output Format:
Print "Yes" if the total price of items less than or equal to S and print "No" otherwise.
Sample Input:
6 100 8 31 4 12 19 2
Sample Output:
Yes
Notes:
8 + 31 + 4 + 12 + 19 + 2 = 76
76 < 100
Then "Yes" you can buy them
Added by:

gammal

Added at:

20150211 18:18:45 UTC

Time Limit:

1 second

Partial score:

No
