#C10097. Unique Microorganism Sequence
Unique Microorganism Sequence
Unique Microorganism Sequence
In this problem, you are given multiple sequences of non-negative integers representing microorganisms. A microorganism is considered "unique" if its sequence contains no repeated elements. In other words, for a sequence (S = {s_1, s_2, \dots, s_n}), it is unique if (n = |{s_1, s_2, \dots, s_n}|). Your task is to determine for each sequence whether it is unique.
inputFormat
The first line of input contains an integer (T) denoting the number of sequences. Each of the next (T) lines contains a sequence of non-negative integers separated by spaces. Note: An empty line represents an empty sequence.
outputFormat
For each sequence, output a single line containing the answer: "YES" if the sequence contains no repeated elements, or "NO" otherwise.## sample
5
0 1 2 3 4
1 2 2 3 4
5 6 7 8 9
3 3 3 3 3
8 7 6 5
YES
NO
YES
NO
YES
</p>