#29121: (Python) 自己的個人學習筆記


chiugt0817@gmail.com (Bonjour)


while True
  try:  
    list1=[] #先設一個空字串
    while True:
      N=input()
      if N in arr: #先判斷 再放入list1中
        print("YES") #所以一定是當N先前有放入list1中,才會N in arr成立
      else:
        print("NO")
      list1.append(N)
  except EOFError:
    break
#29122: Re:(Python) 自己的個人學習筆記


chiugt0817@gmail.com (Bonjour)


while True
  try:  
    list1=[] #先設一個空字串
    while True:
      N=input()
      if N in list1: #先判斷 再放入list1中
        print("YES") #所以一定是當N先前有放入list1中,才會N in arr成立
      else:
        print("NO")
      list1.append(N)
  except EOFError:
    break