Set .add()

  • + 0 comments

    import sys

    num_stamps = int(sys.stdin.readline()) stamps = {sys.stdin.readline().rstrip() for _ in range(num_stamps)} sys.stdout.write(str(len(stamps)))