Problem C: 找出数组中重复的数字

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:187 Solved:19

Description

在一个长度为 n 的 nums 数组中己经有某些数字是重复的,并且nums数组里所有的数字都在0~n-1的范围内,但不知道有几个数字重复了。请找出数组中所有重复的数字。(输出多个重复数字间用空格分隔)

Input

第一行为数组长度 n。第二行为 n个整数,数字的空格分隔。

Output

数组中所有重复的数字,依从小到大排列。(输出多个重复数字间用空格分隔)

Sample Input Copy

7
2 3 1 0 2 5 3

Sample Output Copy

2 3

HINT

 1=<n<=100000