Can someone tell me what is wrong with my code?

cook your dish here

try:
t=int(input().strip())
for a0 in range(t):
nrxy=input().strip().split(" “)
n=int(nrxy[0])
r=int(nrxy[1])
x=int(nrxy[2])
y=int(nrxy[3])
if x==0:
plag=input().strip().split(” “)
plag=[int(i) for i in plag]
if n-y<r:
print(n-y)
else:
print®
elif y==0:
prev=input().strip().split(” ")
prev=[int(i) for i in prev]
if n-x<r:
print(n-x)
else:
print®

    elif x!=0 and y!=0:
        plag=input().strip().split(" ")
        plag=[int(i) for i in plag]
        prev=input().strip().split(" ")
        prev=[int(i) for i in prev]
        k=set(plag)&set(prev)
        l=n-x-y+len(k)
        if l<r:
           print(l)
        else:
           print(r)
    elif x==0 and y==0:
        print(r)

except:
pass

This was from yesterday’s ZCO scholarship contest

Firstly, please format your code or send the link to you code, and secondly could you please specify the question.

1 Like

https://www.codechef.com/viewsolution/27689572
Thanks in advance