Question: USING C #include Mark likes apples. In fact, he likes it so much that he only wants to eat apples that weigh at least K
USING C #include
Mark likes apples. In fact, he likes it so much that he only wants to eat apples that weigh at least K kilograms. Mark has N Apple in her fridge. Since he wants to start fitness program, he has asked you to write a program that will tell him how many apple she will eat.
Format Input The input consists of T test cases. Each test case contains two lines of input: The first line of each test case contains two integers C and D, the amount of apple in Mark fridge and the minimum weight of the apple mark wants to eat. The second line of each test case contains N integers Ai, the weight of each apple. Format Output For each tect case, output one line containing "Case #X: " (without quotes), where X is the test case number (starting from 1), then followed by Y , the number of apples he will eat.
Constraints
1 <= T <= 100
1 <= C <= 104
1 <= D <= 106
1 <= Ai <= 106
Sample Input (standard input) 2 5 3 2 3 2 3 1 4 5 1 2 3 4
Sample Output (standard output) Case #1: 2 Case #2: 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
