#C2489. Unique Registration Numbers
Unique Registration Numbers
Unique Registration Numbers
You are given a list of registration numbers. Your task is to determine whether all the registration numbers in the list are unique.
Input: The first line of input contains an integer \(n\) representing the number of registration numbers. The second line contains \(n\) space-separated integers, each representing a registration number.
Output: Print True
if all registration numbers are unique; otherwise, print False
.
For example, if the input is:
5 1 2 3 4 5
the output should be:
True
inputFormat
The input is read from stdin and consists of two lines:
- The first line contains an integer \(n\), the number of registration numbers.
- The second line contains \(n\) space-separated integers.
outputFormat
Output a single line to stdout containing either True
if all numbers are unique, or False
if there is any duplicate.
5
1 2 3 4 5
True