-->
当前位置:首页 > 题库

PROGRAMMING:Wqb buying gifts for dogs

Luz5年前 (2021-05-10)题库412
Wqb's classmate CZY has a unique dog at home, called a seal. Wqb thinks the seal is very cute. During the holiday, he wants to buy a gift for the dog, so he comes to Wangzai shopping mall. Wqb is rich and willful, so he decides to buy the most expensive commodity as a gift. If the price of the goods is the same, he will buy the first gift he sees. Now there are n (0 < n < = 100) items that can be used as gifts in the shopping mall, and the number is 1 ~ n. please select the number of the qualified gifts and output them.
###Input format:
Enter n in the first line and N numbers in the second line to represent the price of each commodity.
###Output format:
Number of qualified gifts
###Input example:
Here is a set of inputs. For example:
```in
three
1 2 3
four
2 2 1 2
```
###Output example:
The corresponding output is given here. For example:
```out
three
one
```







answer:If there is no answer, please comment