AlgoUniversity
  • Go Back
Discussion
Number Of Subsets :

Author

Akshay Sharma

Difficulty Level : Hard

Submissions : 537

Asked In : Sprinklr

Marks :100

: 3 | : 7

Find the number of ways to divide array A of Size N into two subsets such that the sum of each subset is greater than K.

Input

The first line contains two integers N and K ($$$1 \le N,K \le 10^3$$$)

The next line contains an array of size N.

Output

For each test case print the number of subsets whose sum is greater than K

Example

Input
3 5
3 7 4
Output
2

You need to login to view your submissions.

You need to login to view all submissions.

Loading...

Result : Executed

Loading...

Feel something is wrong with the test cases?

Result : Accepted

Test Cases :

You need to Log In
We're glad that you want to attempt this problem!

But to Run or Submit the Problem, you need to Log In.

Continue to Log In
Challenge Submitted!

Your challenge has been submitted successfully.

You will get a response soon via WhatsApp or Email.

Challenge
Facing issue while trying to solve the problem! Don't worry, we got you covered!

Do let us know your issue.

Looks good!
Please enter your issue / feedback.

How do we get in touch with you?
Looks good!
Please enter your phone no.
Looks good!
Please enter your email address.