My issue
why it is getting time limit exceed
My code
# cook your dish here
a,b,c=map(int,input().split())
l=[]
l1=list(set())
for _ in range(a+b+c):
n=int(input())
l.append(n)
l.sort()
for i in l:
if i not in l1 and l.count(i)>=2:
l1.append(i)
print(len(l1))
for i in l1:
print(i)
Learning course: 1000 to 1400 difficulty problems
Problem Link: Discrepancies in the Voters List Practice Problem in - CodeChef