Set .add()

  • + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    N = int(input())
    stamps = list(map(lambda _: input(), range(N)))
    set_ = set()
    for i in range(N):       
            set_.add(stamps[i])
    print(len(set_))