解题思路:
注意事项:
参考代码:
n = int(input())
rugs = []
result = []
for j in range(n):
a, b, g, k = map(int, input().split())
rugs.append([a, b, g, k, j + 1])
x, y = map(int, input().split())
num = 0
for one_rug in rugs:
long = one_rug[0] + one_rug[2]
height = one_rug[1] + one_rug[3]
if one_rug[0] <= x <= long and one_rug[1] <= y <= height:
result.append(one_rug)
if not result:
print(-1)
else:
print(result[-1][4])
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:686 |
printf基础练习2 (C语言代码)浏览:826 |
WU-复数求和 (C++代码)浏览:2119 |
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码)浏览:636 |
C语言程序设计教程(第三版)课后习题9.10 (C语言代码)浏览:583 |
蚂蚁感冒 (C语言代码)浏览:1408 |
A+B for Input-Output Practice (VII) (C语言代码)浏览:566 |
1051(奇了怪了)浏览:747 |
找出最长的字符串来 (C语言代码)浏览:1840 |
三进制小数 (C语言代码)浏览:903 |