Problem 54

One comment on “Problem 54”


  • rabi

    from collections import Counter
    list1=[]

    n=int(input())
    arr=list(map(int,input().split()))
    x=Counter(arr)
    for i in x.values():
    list1.append(i)
    sum1=0
    for i in list1:
    if i>1:
    sum1+=i
    print(sum1//2)