Problem: Given is a sequence of integers A_1, A_2, ..., A_N. If its elements are pairwise distinct, print `YES`; otherwise, print `NO`.

Submission attempts (in order):
# -*- coding: utf-8 -*-
def main():
    StringN = input();
    listA = input();
    newlistA = sorted(listA);

    for i in range(int(StringN)-1):
        if newlistA[i] == newlistA[i+1]:
            print('No');
            return 0;
        else:
            print('Yes');
            return 0;


main();

# -*- coding: utf-8 -*-
def main():
    listA = input();
    newlistA = sorted(listA);

    for i in range(len(newlistA)-1):
        if newlistA[i] == newlistA[i+1]:
            print('No');
            return 0;
        else:
            print('Yes');
            return 0;


main();


# -*- coding: utf-8 -*-
def main():
    StringN    = input();
    listA      = input();
    newlistA   = listA.split();
    duplicateA = set(newlistA);

    if int(StringN) != len(newlistA):
        print('No');
        return 0;
    if int(StringN) == len(duplicateA):
        print('Yes');
    else :
        print('No');


main();


# -*- coding: utf-8 -*-
def main():
    StringN = input();
    listA = input();
    newlistA = sorted(listA);

    for i in range(len(newlistA)-1):
        if newlistA[i] == newlistA[i+1]:
            print('No');
            return 0;
        else:
            print('Yes');
            return 0;


main();

# -*- coding: utf-8 -*-
def main():
    StringN = input();
    listA = input();
    newlistA = sorted(listA);

    for i in range(int(StringN)-1):
        if newlistA[i] == newlistA[i+1]:
            print('No');
            return 0;
    print('Yes');


main();


# -*- coding: utf-8 -*-
def main():
    StringN = input();
    listA = input();
    newlistA = listA.split();
    duplicateA = set(newlistA);

    if int(StringN) == len(duplicateA):
        print('Yes');
    else :
        print('No');


main();


# -*- coding: utf-8 -*-
def main():
    StringN = input();
    listA = input().split();
    lsitA.sort();

#    print(newlistA);

    for i in range(int(StringN)-1):
#        print(newlistA[i]);
#        print(newlistA[i+1]);
        if lsitA[i] == lsitA[i+1]:
            print('No');
#            print (i)
            return 0;
    print('Yes');


main();

# -*- coding: utf-8 -*-
def main():
    StringN = input();
    listA = input().split();
    newlistA = sorted(listA);
#    print(newlistA);

    for i in range(int(StringN)-1):
#        print(newlistA[i]);
#        print(newlistA[i+1]);
        if newlistA[i] == newlistA[i+1]:
            print('No');
            return 0;
    print('Yes');


main();


# -*- coding: utf-8 -*-
def main():
    StringN    = input();
    listA      = input();
    newlistA   = listA.split();
    duplicateA = set(newlistA);

    if int(StringN) != len(newlistA):
        print('No');
        return 0;
    if int(StringN) == len(duplicateA):
        print('Yes');
    else :
        print('No');

main();

# -*- coding: utf-8 -*-
def main():
    StringN = input();
    listA = input().split();
    listA.sort();

#    print(newlistA);

    for i in range(int(StringN)-1):
#        print(newlistA[i]);
#        print(newlistA[i+1]);
        if listA[i] == listA[i+1]:
            print('No');
#            print (i)
            return 0;
    print('Yes');


main();


# -*- coding: utf-8 -*-
def main():
    StringN = input();
    listA = input().split();
    listA.sort();

#    print(newlistA);

    for i in range(int(StringN)-1):
#        print(newlistA[i]);
#        print(newlistA[i+1]);
        if listA[i] == listA[i+1]:
            print('NO');
#            print (i)
            return 0;
    print('YES');


main();


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted