题解 | #二维数组操作#
二维数组操作
http://www.nowcoder.com/practice/2f8c17bec47e416897ce4b9aa560b7f4
while True:
try:
a,b = map(int,input().split())
if(a > 9) | (b > 9):
print(-1)
else:
print(0)
a_1,b_1,a_2,b_2 = map(int,input().split())
if(a_1 >= a) | (a_2 >= a) | (b_1 >= b) | (b_2 >= b):
print(-1)
else:
print(0)
insert_a = int(input())
if(insert_a >= 0) & (insert_a < a) & (a < 9):
print(0)
else:
print(-1)
insert_b = int(input())
if(insert_b >= 0) & (insert_b < b) & (b < 9):
print(0)
else:
print(-1)
find_a,find_b = map(int,input().split())
if(find_a < a) & (find_b < b):
print(0)
else:
print(-1)
except:
break
华为机试题解(prod.by kedao) 文章被收录于专栏
华为实习机试题解