Medium
Values That Repeat
Read integers and print, in increasing order, the values that appear more than once (or
none), using two sets: seen and repeated.Input
Integers separated by spaces.
Output
One line.
Sample 1
Input
1 2 3 2 1 5
Output
1 2
Sample 2
Input
1 2 3
Output
none
Output appears here