1158: 链表删除

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:9 Solved:7

Description

给定n(n<=100)个整数ai(ai<=100),将这些整数中与m(m<=100)相等的数删除,输出删除后剩余的元素(要求使用链表完成)。

Input

输入三行,第一行为整数n,第二行为n个整数,第三行为m

Sample Input Copy

5
1 3 6 5 3
3 

Sample Output Copy

1 6 5

Source/Category