## GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

# [Solution] Increasing Codeforces Solution | Solution Codeforces

B. Increasing
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

You are given an array $a$ of $n$ positive integers. Determine if, by rearranging the elements, you can make the array strictly increasing. In other words, determine if it is possible to rearrange the elements such that ${a}_{1}<{a}_{2}<\cdots <{a}_{n}$ holds.

Input

The first line contains a single integer $t$ ($1\le t\le 100$) — the number of test cases.

The first line of each test case contains a single integer $n$ ($1\le n\le 100$) — the length of the array.

The second line of each test case contains $n$ integers ${a}_{i}$ ($1\le {a}_{i}\le {10}^{9}$) — the elements of the array.

Output

For each test case, output "YES" (without quotes) if the array satisfies the condition, and "NO" (without quotes) otherwise.

You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer).

Note

In the first test case any rearrangement will keep the array $\left[1,1,1,1\right]$, which is not strictly increasing.

In the second test case, you can make the array $\left[1,3,4,7,8\right]$.