#K91772. Unique House Numbers
Unique House Numbers
Unique House Numbers
You are given a list of house numbers. Your task is to determine whether all the house numbers in the list are unique. In other words, check if there are no duplicate numbers in the array.
The input is provided through the standard input. The first line contains a single integer n which represents the number of house numbers. The second line contains n space-separated integers representing the house numbers. Output a single line with either "True" if all numbers are unique, or "False" if there is any duplicate.
For example:
Input: 5 101 202 303 404 505</p>Output: True
inputFormat
The first line contains an integer n indicating the number of house numbers. The second line contains n space-separated integers representing the list of house numbers.
outputFormat
Output a single line containing either True
if all house numbers are unique or False
if there are duplicates.
5
101 202 303 404 505
True