Question: C programming language After preparing an easy problem, Bibi wants to pop balloons. Bibi can only pop a balloon if her strength is strictly greater
C programming language
After preparing an easy problem, Bibi wants to pop balloons. Bibi can only pop a balloon if her strength is strictly greater than the toughness of the balloon. Given her strength and the toughness of the balloons, she wants you to predict how many balloons she can pop.
Format Input: The first line of the input consists of two integers N and P, the number of balloons and Bibi's power. The second line of the input consists of N integers bi , the power of the i-th balloon.
Format Output: Print the number of balloons Bibi can pop.
Constraints: 1 <= N <= 10^5 0 <= P <= 10^9 0 <= bi <=10^9
Sample Input | Sample Output
10 8
1 2 3 4 5 6 7 8 9 10 | 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
