Security Bijective Functions

  • + 0 comments

    My solution in Python 3:

    t=int(input())
    s=list(map(int,input().split()))
    if len(set(s)) == t:
        print("YES")
    else:
        print("NO")