| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134996 | 胡皓宇 | 铺地毯 | Python3 | Accepted | 56 MS | 3796 KB | 433 | 2025-11-02 09:58:25 |
flag = False num = int(input()) a = [] for i in range(num): b = list(map(int,input().split())) a.append(b) x,y = input().split() x,y = int(x),int(y) for i in range(num-1,-1,-1): x1 , x2 , x3 , x4 = a[i][0] , a[i][1] , a[i][0] + a[i][2] , a[i][1] + a[i][3] if (x >= x1 and y >= x2 and x <= x3 and y <= x4): print(i+1) flag = True break if flag == False: print(-1)