Advertisement
Tsuuko4512

ganntai

Jan 26th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. all = input()
  2. motteru_all = input()
  3. motteru = input()
  4. utteru_all = input()
  5. utteru = input()
  6. motteru_list=motteru.split(" ")
  7. utteru_list=utteru.split(" ")
  8. num=[]
  9. for i in utteru_list[:]:
  10.     if i in motteru_list:
  11.         num.append(i)
  12. for i in num:utteru_list.remove(i)
  13. if utteru_list==[]:print("None")
  14. else:print(" ".join(utteru_list))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement