49 atcoder#ABC191B. [ABC191B] Remove It
[ABC191B] Remove It
Score : points
Problem Statement
Given are an integer sequence of length , and an integer . Remove all elements that are equal to from , and arrange the remaining elements without changing the order to obtain the sequence . Print .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the elements of in order, with space in between.
5 5
3 5 6 5 4
3 6 4
Removing s from results in .
3 3
3 3 3
can be a sequence with zero elements, in which case we should just print an empty line.