解题思路:
注意事项:
参考代码:
def f(n): X = [[0,0] for i in range(n+1)] Y = [[0,0] for i in range(n+1)] for i in range(1,n+1): a,b,g,k = map(int,input().strip().split()) X[i][0] = a X[i][1] = a+g Y[i][0] = b Y[i][1] = b+k x,y = map(int,input().strip().split()) ans = -1 for i in range(n,0,-1): if X[i][0]<=x<=X[i][1] and Y[i][0]<=y<=Y[i][1]: ans = i break print(ans) if __name__ == '__main__': n = int(input()) f(n)
0.0分
0 人评分