subject

You're given a sequence of non-negative numbers on a single line via standard input, each separated by a single space. print the same list with on a single line on standard output however after removing any element that occurs only once.

assumptions

1. all the numbers are non-negative (greater than or equal to 0.

2. the only input is the sequence of numbers

3. there are no punctuation marks or anything else to worry about reading.

4. there's at least one number in the sequence which occurs more than once

example

input 2313
answer 1313

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:10
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 23.06.2019 15:20
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
You know the right answer?
You're given a sequence of non-negative numbers on a single line via standard input, each separated...
Questions
Questions on the website: 13722362