QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#750390#9739. 盒子vanthociCompile Error//C++20278b2024-11-15 14:26:202024-11-15 14:26:24

Judging History

你现在查看的是最新测评结果

  • [2024-11-15 14:26:24]
  • 评测
  • [2024-11-15 14:26:20]
  • 提交

answer

z1,h,x1,y1,x2,y2=map(int, input().split())
x1,x2=sorted([x1,x2])
y1,y2=sorted([y1,y2])
T = int(input())
for _ in range(T):
    x,y,z=map(int, input().split())
    if x1 <= x <= x2 and y1 <= y <= y2 and z1 <= z <= z1+h:
        print("YES")
    else:
        print("NO")

详细

answer.code:1:1: error: ‘z1’ does not name a type
    1 | z1,h,x1,y1,x2,y2=map(int, input().split())
      | ^~