Editorial for GFSSOC '14 Winter J1 - Flying Plushies


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Use a counter to keep track of how many plushies hit. A plushie will hit if its height is greater than or equal to Griffy's flying height.

Skills needed: If statements, for loops

Time complexity: \mathcal O(N)


Comments

There are no comments at the moment.