Set .add()

  • [deleted]Challenge Author
    + 0 comments

    For Python3

    N = int(input())
    stamps = set()
    for i in range(N):
        stamps.add(input())
    
    print(len(stamps))