Utilize an array in order to solve the following problem:
Read in five numbers. Since each number is read, show it only if it is not the duplicate of number that has already been read (that is, it is unique). Provide for all cases including five unique numbers and just one unique number. Use the smallest possible array in order to solve this problem.