Question: In c++ please Problem D. Daenerys Input file: standard input standard output 1 second 256 megabytes Output file Time limit: Memory limit: In celebration of
Problem D. Daenerys Input file: standard input standard output 1 second 256 megabytes Output file Time limit: Memory limit: In celebration of her recent marriage, Daer no one has ever been able to hatch a dragon in over a century, the eggs were given to her merely as a decoration. But Daenerys has other plans. Daenerys knows that dragon eggs will hatch when they're set on fire, just as long as the eggs are old enough. Specifically, they will hatch if and only if they are at least p years old. Given the age of each of Daenerys's dragon eggs, determine how many of them are old enough to hatch, once they're set on fire. Input erys Targaryen has been given dragon eggs as a gift! Since The first line of input consists of two integers, n and p (1Sn, ps100), representing the number of dragon eggs and the age at which dragon eggs hatch. Each of the next n lines contains a number k (13ks100) describing the age of a given dragon egg. Output Output a single integer giving the number of dragons that will hatch from the dragon eggs Example standard output standard input 3 50 60 40 50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
