PLEASE HELP!!!
I don't know what is the problem with my code. In the first subset all the test casespasses except one. Can someone please look at my python code and modify it.
Thank you
import sysn,x,y=map(int,input().split())contests=[]for i in range(n):contests.append(list(map(int,input().split())))contests=sorted(contests, key=lambda x: x[0])v=sorted(list(map(int,input().split())))w=sorted(list(map(int,input().split())))time=sys.maxsizefor i in contests:for j in range(x-1,-1,-1):if v[j]<=i[0]:t1=v[j]breakfor k in range(y):
Read more… (35 words)