一、题目
二、示例
三、代码
while True:
try:
m, n = map(int, input().split())
x1, y1, x2, y2 = map(int,input().split())
in_x = int(input())
in_y = int(input())
x, y = map(int, input().split())
if 0 <= m <= 9 and 0 <= n <= 9:
print('0')
else:
print('-1')
if 0 <= x1 < m and 0 <= y1 < n and 0 <= x2 < m and 0 <= y2 < n:
print('0')
else:
print('-1')
if 0 <= in_x < m and m < 9:
print('0')
else:
print('-1')
if (0 <= in_y < n) and (n < 9):
print('0')
else:
print('-1')
if 0 <= x < m and 0 <= y < n:
print('0')
else:
print('-1')
except:
break
四、算法说明
让人焦虑的题目。
胡萝卜
2022年3月2日14:15:16
我不知道将去向何方,但我已在路上! |
---|
时光匆匆,虽未曾谋面,却相遇于斯,实在是莫大的缘分,感谢您的到访 ! |