CodeMentor.
Ask AIProblemsLearnC++TCSCore CSHRProgress
0Lv 1
ProblemsHackerRank Warmup

Birthday Cake Candles

Easy
HackerRank
8/12
EasyHackerRank Warmup

Birthday Cake Candles

You can blow out only the tallest candles. Count how many share the maximum height.

Examples

Example 1

Input

4
3 2 1 3

Output

2

Stuck? Take a nudge

C++17Autosaves