题解 | #二维数组操作#
二维数组操作
https://www.nowcoder.com/practice/2f8c17bec47e416897ce4b9aa560b7f4
#有坑自记 插入的列 和行必须在现有列表里,例如三行的列表不能在6行插入 while True: try: m,n=map(int,input().split()) x1,y1,x2,y2=map(int,input().split()) xch=int(input()) ycl=int(input()) xc,yc=map(int,input().split()) if m<=9 and n<=9: print(0) else: print(-1) if x1<m and y1<n and x2<m and y2<n: print(0) else: print(-1) if xch<m<9:#插入的行数和列数必须在现有列表里。 print(0) else: print(-1) if ycl<n<9: print(0) else: print(-1) if xc<m and yc<n: print(0) else: print(-1) except: break