~/algor $ cat problems/minmax-19-eng-kichik-elementlar-soni
Number of smallest elements
Easy
1000 ms
256 MB
27%
A positive integer $N$ and $N$ integers are given. Count how many elements of the sequence are equal to the smallest value.
Input
The first line contains an integer $N$. The next line contains $N$ integers $A_{i}$.
Output
One integer — the number of smallest elements.
Note
$1 \le N \le 1000$
$-10^{9} \le A_{i} \le 10^{9}$
Examples
Input #1
6 4 2 8 2 7 2
Output #1
3
Input #2
4 5 8 1 9
Output #2
1