g=int(input())
a,c,s = [int(i) for i in input().split()],[0]*101,0
for i in a:
c[i]+=1
a = set(a)
for i in a:
if c[i]>1:
s+=c[i]//2
print(s)
g=int(input())
a,c,s = [int(i) for i in input().split()],[0]*101,0
for i in a:
c[i]+=1
a = set(a)
for i in a:
if c[i]>1:
s+=c[i]//2
print(s)
Hi friends....
In this blog I'm going to give answer for daily test skillrack program, daily challenges and kick start programs and give some coding techniques.
It'll be helpful for u sure and make it usefull
Learn More →
0 Comments