Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n=int(input())
- tip=0
- colvo=0
- g=[]
- for i in range(0,n):
- m=input()
- g.append(m)
- g.sort()
- for j in g:
- if g.count(j)==1:
- g.remove(j)
- z=g[0]
- for ij in range (1,len(g)):
- if z==g[ij]:
- tip+=1
- else:
- z=g[ij]
- colvo=len(g)-(tip*2-1)
- print(tip)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement