Sort by

recency

|

1839 Discussions

|

  • + 0 comments

    if name == 'main': n = int(raw_input()) integer_list = map(int, raw_input().split()) use python 2 t = tuple(integer_list) print(hash(t))

  • + 0 comments

    use python 2 in above option if name == 'main': n = int(raw_input()) integer_list = map(int, raw_input().split()) res = hash(tuple(integer_list)) print(res)

  • + 0 comments

    use python 2 in above option

  • + 0 comments

    Python 3 generates random hash number every time. Its impossible to match the answer. Please Use Python 2

    if __name__ == '__main__':
        n = int(raw_input())
        integer_list = map(int, raw_input().split())
        
        print(hash(tuple(integer_list)))
    
    #    n = int(input())
    #    t = tuple(int(i) for i in input().split())
    #    print(hash(t))
    
  • + 0 comments

    Use python 2

    if __name__ == '__main__':
        n = int(raw_input())
        integer_list = map(int, raw_input().split())
        res = hash(tuple(integer_list))
        print(res)