题解 | #二维数组操作#
二维数组操作
https://www.nowcoder.com/practice/2f8c17bec47e416897ce4b9aa560b7f4
while True: try: m,n = map(int,input().split()) #整数 x1,y1,x2,y2 = map(int,input().split()) #坐标 x,y = int(input()),int(input()) #坐标 X,Y = map(int,input().split()) #坐标 print(0 if 0<m<=9 and 0<n<=9 else -1) #(0,9] print(0 if 0<=x1<m and 0<=y1<n and 0<=x2<m and 0<=y2<n else -1) #坐标点要在初始化坐标之内 print(0 if x<m<9 else -1) #要可以插入,m必须小于9且x要小于m,不能取等,因为行从0开始标 print(0 if y<n<9 else -1) #要可以插入,n必须小于9且y要小于n,不能取等,因为列从0开始标 print(0 if 0<=X<m and 0<=Y<n else -1) except: break