题解 | #二维数组操作#

二维数组操作

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())
        x3, y3 = map(int, input().split())
        print(0 if m <= 9 and n <= 9 else -1)
        print(0 if x1 < m and x2 < m and y1 < n and y2 < n else -1)
        print(0 if 9 > m > x else -1)
        print(0 if 9 > n > y else -1)
        print(0 if x3 < m and y3 < n else -1)
    except:
        break

全部评论

相关推荐

头像
不愿透露姓名的神秘牛友
04-29 12:10
点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务