• + 0 comments

    While this problem provides n as input, it's not actually needed in the solution. This longer version of the code is provided as an alternative for programmers who aren't yet comfortable using map() and prefer a more step-by-step approach.

    if name == 'main':

    n = int(input()) 
    
    numbers = input().split() 
    
    int_list = []
    
    for num in numbers:
    
        int_list.append(int(num))
    
    t = tuple(int_list)
    
    print(hash(t))