Hi,
I have done it in python. It works fine but I am getting it as wrong answer in SPOJ. I did not get , where is it going wrong. Can you help me find the my mistake?
My code,
n = int(input("Total n cases : "))
if(2 <= n <= 100):
fl = []
fl = [int(x) for x in input().split(’ ')[:n]]
m = int(input("Total m cases : "))
if(2 <= m <= 100):
sl = []
sl = [int(x) for x in input().split(' ')[:m]]
res = []
for i in range(n):
if(fl[i] not in sl):
res.append(fl[i])
res.sort()
for i in res:
print(i, end=' ')