explain the question and input format
please explain the question briefly.MIN To MAX
You are given an array
????
A of size
????
N.
Let
????
M be the minimum value present in the array initially.
In one operation, you can choose an element
????
????
A
i
(
1
≤
????
≤
????
)
(1≤i≤N) and an integer
????
X
(
1
≤
????
≤
100
)
(1≤X≤100), and set
????
????
????
A
i
=X.
Determine the minimum number of operations required to make
????
M the maximum value in the array
????
A.
Input Format
The first line of input will contain a single integer
????
T, denoting the number of test cases.
Each test case consists of multiple lines of input.
The first line of each test case contains a single integer
????
N – the size of the array.
The next line of each test case contains
????
N space-separated integers
????
1
,
????
2
,
…
,
????
????
A
1
,A
2
,…,A
N
- the elements of the array.
Output Format
For each test case, output on a new line, the minimum number of operations required to make
????
M the maximum value in the array
????
A.
Sri Kanth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.