Cho mảng số nguyên A[] gồm N phần tử, hãy đếm xem trong mảng của bạn có bao nhiêu số có cùng giá trị nhỏ nhất. Ví dụ mảng A = {1, 2, 1, 3, 5} thì số nhỏ nhất trong mảng là 1 xuất hiện 2 lần.
Đầu vào
Vector hàng gồm N số nguyên
Giới hạn
1<=N<=1000
-10^3<=A[i]<=10^3
Đầu ra
In ra đáp án của bài toán
Ví dụ :
Nums = [28 28 28 30]
Output = 3
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers13
Suggested Problems
-
[Mảng 1 Chiều Cơ Bản]. Bài 3. Số nhỏ nhất
13 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!