题解 | #矩阵元素定位#
矩阵元素定位
https://www.nowcoder.com/practice/b8e6a46992fe4e11b2822b20561b6d94
n,m = map(int,input().split()) list1=[] for i in range(1,n+1): num=input().split() list1.append(num) x,y=map(int,input().split()) print(list1[x-1][y-1])
矩阵元素定位
https://www.nowcoder.com/practice/b8e6a46992fe4e11b2822b20561b6d94
n,m = map(int,input().split()) list1=[] for i in range(1,n+1): num=input().split() list1.append(num) x,y=map(int,input().split()) print(list1[x-1][y-1])
相关推荐