Set .add()

  • + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    n = int(input())
    output_set = set()
    for i in range(n):
        element = input()
        output_set.add(element)
    
    print(len(output_set))