Birthday Cake Candles

0

0 votes
Easy
Problem

Colleen is turning n years old! She has n candles of various heights i on her cake, and candle height[i] has height . Because the taller candles tower over the shorter ones, Colleen can only blow out the tallest candles.

Given the height[i] for each individual candle, find and print the number of candles she can successfully blow out.

Input Format

The first line contains a single integer,n , denoting the number of candles on the cake. The second line contains n space-separated integers, where each integer i describes the height of candle i.

Constraints

enter image description here

Output Format

Print the number of candles Colleen blows out on a new line.

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?